0

I've searched on Google and these forums but haven't found what I'm looking for so I'll ask here :)

I'm working on an HTML 5 hybrid app project using the Ionic Framework and I'm looking to implement a type of picker that allows the user to select Hours/Minutes (i.e. [5 hours | 30 minutes]). What our UX design is calling for is something similar to this:

UIPickerView that looks like UIDatePicker but with seconds

Is it possible to implement this in Android using the Picker class (doesn't necessarily have to have scrolling wheels like on iOS)?

Community
  • 1
  • 1
Android Noob
  • 3,271
  • 4
  • 34
  • 60
  • https://code.google.com/p/android-wheel/ use this example – Hemantvc Sep 09 '15 at 04:09
  • Have you tried this plugin? https://github.com/VitaliiBlagodir/cordova-plugin-datepicker – Mudasser Ajaz Sep 09 '15 at 04:43
  • Have you checked using standard android time picker in a dialog fragment? http://developer.android.com/guide/topics/ui/controls/pickers.html – random Sep 09 '15 at 05:02
  • - Hermantvc I'll probably try that out as a last resort. Looks like that component it backed by ListAdapters, which need to be configured before usage. A component from the Picker subclass might be preferred. - mudasserajaz I'm currently using that plugin in the project but it does not have an option to select something like [5 hours | 30 minutes] - random I'll look into this one tonight. I haven't found an example where someone can put [5 hours | 30 minutes] into a dialog. – Android Noob Sep 09 '15 at 14:47

2 Answers2

0

This is best time picker ever, you can set format with 24hour and 12hour as well

https://github.com/rajeshwarpatlolla/ionic-timepicker

Paresh Gami
  • 4,777
  • 5
  • 23
  • 41
0

I know its a little late but to whomsoever it may concern , try mobiscroll it has a really awesome IOS like picker with the option to choose different types like hour, minutes, etc.

Here's the link : http://demo.mobiscroll.com/

Just dig into their opensource code available here: https://github.com/acidb/mobiscroll
And if you have any issues integrating just drop a mail to them they have amazing support.

NOTE: Although for direct integration you need to buy a license.

Gaurav Sarma
  • 2,248
  • 2
  • 24
  • 45