I'm creating a number picker as indicated in the attached image below but I want to show more than 3 values if space is available. This picker has 20 items and there is plenty of room to show more than 3 values. Can this be accomplished using NumberPicker?
Asked
Active
Viewed 3,522 times
6
-
I think you would have to make your own custom copy of NumberPicker in order to get that behavior unfortunately. – FoamyGuy Apr 03 '13 at 00:44
-
I wonder if it would be easier to get the NumberPicker source and modify it or try to duplicate the same thing using a list. The big thing that I must replicate is the selector in the middle. – wheels53 Apr 03 '13 at 01:02
-
That is what I mean, start with their code and modify it, not create from scratch. – FoamyGuy Apr 03 '13 at 01:18
-
I have answered this question here [link](https://stackoverflow.com/questions/49790141/display-more-numbers-in-numberpicker) – Anand Kumar Dec 30 '18 at 19:29
1 Answers
-9
just set Programatically numberPicker.setWheelItemCount(10);

Gaurav Mandlik
- 525
- 1
- 9
- 42
-
doesn't work, can't find the method itself https://developer.android.com/reference/android/widget/NumberPicker – Anand Kumar Dec 30 '18 at 13:49
-