1

How can we set the min and max values of a NumberPicker in XML layout file for Android 4+. I know how to do it programmatically.

lalitm
  • 626
  • 9
  • 11
  • 1
    possible duplicate of [Android NumberPicker: Set min, max, default from XML](http://stackoverflow.com/questions/12317960/android-numberpicker-set-min-max-default-from-xml) – njzk2 Apr 08 '14 at 15:36
  • why do we need to create our own NumberPicker. Is there no way to directly set these in Android's NumberPicker? – lalitm Apr 08 '14 at 15:43
  • `why` because there is no way to set the min, max and default in the xml. – njzk2 Apr 08 '14 at 15:47
  • 12
    OK, so it is an incomplete widget. – lalitm Apr 08 '14 at 16:00
  • 2
    that's an opinion, and there is not much point to it, but you can consider that yes, in your use case, it does not do what you need, and hence is considered *incomplete*. But you can extend it. – njzk2 Apr 08 '14 at 16:43

0 Answers0