1

I'm looking to implement a time picker like below in Android.

I've already looked at http://tolkianaa.blogspot.mx/2012/04/how-to-use-android-wheel-part-ii.html but he has multiple xml files and multiple classes seemingly so I can't see how thats going to work. (Am I missing something?)

I have android-wheel installed so this question is useless Replicating the iOS time picker in Android

The demos from android wheel don't seem to really accommodate it.

Anyway, does anyone have a better way of implementing this is android?

enter image description here

Community
  • 1
  • 1
Niall Paterson
  • 3,580
  • 3
  • 29
  • 37
  • 4
    this is not an answer but ...why? oh why? http://developer.android.com/design/patterns/pure-android.html – Selvin Sep 12 '12 at 09:49
  • You should have a look at the stock clock app that comes with Android >= 4. it implements a time picker very similar to the one you have in your screenshot, but styled for Android. The usability of this type of time picker is really great. But be cautious to do not copy the look of the iOS picker in Android. The two OS have very different styles and it would just look horribly out of place. The link provided by @Selvin should be the first step in any Android design process. – Teovald Sep 12 '12 at 09:50
  • surely android could accept that iOS's way is far better and more practical and just (yet again) copy them – Niall Paterson Sep 12 '12 at 09:51
  • @Teovald oh I agree the last thing I wanted was a carbon copy. Could you by any chance link me to that? – Niall Paterson Sep 12 '12 at 09:55

1 Answers1

0

You should have a look at the AOSP source code, a clock app is included I think it is the default one that is shipped with ICS & JB (but I have not compiled it to verify).
Also, the official website always have some useful info, you should try to start with this widget. The illustration seems to indicate that it uses buttons instead of swiping, which is strange but even if it is the case it will be a good start to implement a swiping version of this widget.
@Lokesh's link also seems to also fit your needs.

Teovald
  • 4,369
  • 4
  • 26
  • 45