13

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

silent_coder
  • 6,222
  • 14
  • 47
  • 91
  • Hi you got any solution.. Even I am stuck same situation and searching.. can you please give me any hint or code..?? Thanks.. – Asmi Nov 09 '16 at 13:35
  • I created a library to solve this issue : https://arkapp.medium.com/ios-date-time-picker-for-android-93af45fdfaf0 – abdul rehman May 24 '21 at 06:56
  • @abdulrehman, your library is good, but what do I do if I want only first letter in capital and other letters in small for text in Cancel button and Submit button? – Sparsh Dutta Jul 29 '22 at 10:14

2 Answers2

2

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"/>
Kanwarpreet Singh
  • 2,037
  • 1
  • 13
  • 28
0

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

https://github.com/ayushhgoyal/AyushWheel/

Hope this will Help ! Cheers !

Community
  • 1
  • 1
Milind Vyas
  • 294
  • 5
  • 12