1

I've been trying to add a number spinner in android just like in the android docs:

http://developer.android.com/guide/topics/ui/settings.html

http://developer.android.com/images/ui/settings/settings.png

But after much research I wasn't able to figure this out: some are suggesting using the Cyanogenmod one found here or QuetlyCoding library I'm wondering if these are the only options? Is there something built in like the "Text Message limit" in the picture? Thanks.

Community
  • 1
  • 1
David Aleksanyan
  • 2,953
  • 4
  • 29
  • 39
  • possible duplicate of [Android PreferenceActivity dialog with number picker](http://stackoverflow.com/questions/20758986/android-preferenceactivity-dialog-with-number-picker) – Al-Mothafar Aug 25 '15 at 20:01

1 Answers1

0

There's a NumberPicker class which allows selecting a number from the predefined range. You can create a custom dialog, which uses this control.

Alexander Zhak
  • 9,140
  • 4
  • 46
  • 72