Can't believe I haven't found an answered Stack Overflow post about this...
I'm making a timer where you select the time from a NumberPicker widget. The problem is that it takes 10-13 scrolls to get to the bottom
I looked in the documentation but haven't found anything
String[] minsecvalues = new String[61];
for(int i=0; i < minsecvalues.length; i++){
minsecvalues[i] = Integer.toString(i);
}
NumberPicker mSecondsPicker = (NumberPicker) v.findViewById(R.id.np_seconds_picker);
mSecondsPicker.setMaxValue(60);
mSecondsPicker.setMinValue(0);
mSecondsPicker.setWrapSelectorWheel(true);
mSecondsPicker.setDisplayedValues(minsecvalues);
//supposed to change scroll speed but doesn't work
mSecondsPicker.setOnLongPressUpdateInterval(8000);
//This method looks promising but my app crashes when I run it
//mSecondsPicker.scrollBy(0, 20);