I have implemented a NumberPicker
in which we can roll the numbers from 0 to 99. But my requirement is I only want 1,2,3,4,5,99
, these number to be rolled in NumberPicker
. Is it possible to do this?
I have tried this where mPicker
is the object of NumberPicker
String[] nums= {"1","2","3","4","5","99"};
mPicker.setDisplayedValues(nums);
But in this Am not able to roll it, only be able to type through SoftInputKeyboard
. Can anybody help to takle this and get it done without any third party libraries.