-2

I need to implement an IOS time picker with minutes and seconds in an Android app but I have no idea where to start, online I just found solutions that use dialogs but I don't want to use them. Is there any tip or library that could help me on implementing the picker?

Here's a screen of what I mean:

enter image description here

LS_
  • 6,763
  • 9
  • 52
  • 88
  • http://developer.android.com/guide/topics/ui/controls/pickers.html – Phantômaxx Jul 08 '15 at 13:51
  • check it out http://www.tutorialspoint.com/android/android_datepicker_control.htm – Vishwajit Palankar Jul 08 '15 at 13:51
  • possible duplicate of [DateTime picker in android application](http://stackoverflow.com/questions/2055509/datetime-picker-in-android-application) – Chad Nouis Jul 08 '15 at 13:52
  • these solutions uses dialogs.. I found nothing that implements it without dialogs that's why I asked for it – LS_ Jul 08 '15 at 13:56
  • 1
    Read the docs I linked: `We recommend that you use DialogFragment to host each time or date picker.`. **As you know**, a DialogFragment, in that it **is a Fragment**, can also be used as a normal Fragment (hosted inside an Activity), instead of showing on a separate window. – Phantômaxx Jul 08 '15 at 13:59
  • 1
    @DerGol...lum ok thank you! i'll try with your solution – LS_ Jul 08 '15 at 14:02
  • See here: http://developer.android.com/reference/android/app/DialogFragment.html#DialogOrEmbed – Phantômaxx Jul 08 '15 at 14:05

1 Answers1

4

I do not recommend trying to mimick the iOS behaviour, afterall each platform has it's own set of rules and guidelines. The iOS time picker is an iOS time picker, Android does things differently (as mentioned in some comments below your question, tyically as a dialog.)

However, if you do insist on going down the iOS time picker route, here is a popular library people use called Android Wheel.

Well worth taking some time to read up on Android's design guidelines when you get chance.

biddulph.r
  • 5,226
  • 3
  • 32
  • 47