问题
Does anyone have any dialogs that will allow a user to pick a number within a certain range? It seems like this would be a fairly common need, but I can't find a common dialog for it and I'd rather not have to spend the time creating my own.
Any help?
回答1:
I know that more than two years passed but answer is still actual and I find some nice Number Pickers. Here is one of them https://github.com/SimonVT/android-numberpicker

回答2:
It's available in SDK since API 11 - http://developer.android.com/reference/android/widget/NumberPicker.html
回答3:
I've just released some code that does just what you want. Check out my custom control, NumberPicker, which can be seen here: http://www.technologichron.net/?p=42
回答4:
A bit late but for any that are interested, http://code.google.com/p/android-wheel/ is a good implementation.
回答5:
Maybe useful:
http://groups.google.com/group/android-developers/browse_thread/thread/65da9820998fddc9
来源:https://stackoverflow.com/questions/3359510/android-number-picker-dialog