I have a range of values and I need the NumberPicker default NumberPicker be in the middle of its values ...
I'm doing it like this
NumberPicker pickerHeight = (NumberPicker) findViewById(R.id.pickerHeight); pickerHeight.setMaxValue(220); pickerHeight.setMinValue(130); pickerHeight.setValue(155); In the last line I specify the default value. But when I load onto the device, the default value is still at the lowest mark in my case at 130.
What am I doing wrong?
pickerHeight.setWrapSelectorWheel(false);? - YurySPb ♦NumberPickerto rotate in a circle, and as soon as it reaches one of the limit values forminormax, then there are no further values ... And it’s also strange on oneNumberPickerthat works that way, but on the other it’s just ignored and nothing does not happen ... Although the same thing is there, that there ... - Aleksey Timoshchenko