Android - New calendar style DatePicker and TimePicker

自作多情 提交于 2019-11-28 22:33:28

问题


Is it possible to use the new DatePickerDialog and TimePickerDialog style used in the latest version of android? They can be seen here : New style Date and time pickers

I tried looking for the latest sources of the AOSP Project, but event with that code, I still get the old one (With spinners) - They use the same DatePickerDialog and TimePickerDialog classes, so I was not expecting anything else.

Thanks for your help.


回答1:


For future reference, the BetterPickers library has added support for the Google Now and Google Calendar date and time pickers from AOSP.

https://github.com/derekbrameyer/android-betterpickers/

I have not been able to properly implement the library tyczj suggested, and the test APK for it even causes an ANR. Better Pickers seems more stable.

Might be worth checking out both if anyone else wants to implement this.




回答2:


there is a DatePicker library that looks just like that



来源:https://stackoverflow.com/questions/17578856/android-new-calendar-style-datepicker-and-timepicker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!