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)
Android provides controls for the user to pick a time or pick a date as ready-to-use dialogs. Each picker provides controls for selecting each part of the time (hour, minute, AM/PM) or date (month, day, year).
↳ android.widget.NumberPicker. A widget that enables the user to select a number from a predefined range. There are two flavors of this widget and which one is presented to the user depends on the current theme.
In fact, you can. Add android:orientation="horizontal" in the XML and it is horizontal.
After some deep testing and using, this is a list of usable Picker widget libraries
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With