Android dialog number picker

青春壹個敷衍的年華 提交于 2019-12-03 05:09:58

问题


Is there any tested and usable component we can use to show "Count selector" like this?
Our target is to get it working from API v7 .

(Taken from DatePickerDialog)


回答1:


After some deep testing and using, this is a list of usable Picker widget libraries

  • Android Wheel http://code.google.com/p/android-wheel/
  • Number Picker from Michael Novak https://github.com/mrn/numberpicker
  • Date Slider (which can be easily adjusted) http://code.google.com/p/android-dateslider/
  • Horizontal slider widget http://blog.sephiroth.it/2012/01/28/android-wheel-widget/
  • Backport of Android 4.2 NumberPicker https://github.com/SimonVT/android-numberpicker

When kindly omitted the solution in accepted answer, these widget libraries are very usable if you need alter the design, and you like the way iOS does the wheel slider picker.




回答2:


I think this one is better:

https://github.com/SimonVT/android-numberpicker

it has the same look of android 4.2 number picker:

another alternative is using the HoloEverywhere library, which has plenty of native look&feel of android jelly bean



来源:https://stackoverflow.com/questions/7633343/android-dialog-number-picker

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