Is it possible to set the increase/decrease interval of NumberPicker to other value? For instance to 50 (50, 100, 150, 200, 250 etc)? Or do it require some customization/hack?
Is it possible to set the increase/decrease interval of NumberPicker to other value? For instance to 50 (50, 100, 150, 200, 250 etc)? Or do it require some customization/hack?
A bit late in the day, but this works for me...
numberPicker.setOnValueChangedListener(new NumberPicker.OnValueChangeListener() {
@Override
public void onValueChange(NumberPicker numberPicker, int oldVal, int newVal) {
if (newVal > oldVal) {
numberPicker.setValue(newVal+(myInterval-1));
} else if (newVal < oldVal)
numberPicker.setValue(newVal-(myInterval-1));
}
});