Android Number Picker Dialog [closed]

不羁岁月 提交于 2019-12-17 06:12:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!