Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios like date/time picker for android platform

I'm building mobile app for both ios and android platform using native ios/android code. And I want apps looks similar. So I need ios style picker (for date and time selection) available in android. I spend half of the day but don't find any sutable variant. Will be more than happy if you suggest something. I think there should be variants, because I saw several android apps where picker looks the same as on ios (anydo for example).

What I already checked:

  1. android-spinnerwheel (abandoned, not sutable for using, require build actual picker from it's componet, so quite a lot of code)

  2. wheelpicker (quality unclear, regional standards/datetime constants hardcoded in code and in general control hard to customize, however it's candidate for forking and fixing things manually. For sure it's not supporting am-pm/24h UI switching)

  3. PickView (no layout, implemented as dialog, poore customization abilities)

  4. CharacterPickerView (do not use default layout settings, hard to customize without fixing sources, hardcoded values, GPL license)

P.S. I will cosinder payed variants if they exists.


After investigation we ended up with custom controls build based on wheelpicker

like image 206
silent_coder Avatar asked Jun 13 '16 13:06

silent_coder


1 Answers

You can Use wheel type effect in android here is code:

<DatePicker
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:calendarViewShown="false"
   android:datePickerMode="spinner"/>
like image 96
Kanwarpreet Singh Avatar answered Sep 18 '22 21:09

Kanwarpreet Singh