Android - 新的日历风格DatePicker和TimePicker
可以使用最新版本的android中使用的新的 DatePickerDialog
和 TimePickerDialog
样式吗?他们可以在这里看到:新风格日期和时间选择器
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
我尝试寻找AOSP项目的最新来源,但事件与该代码,我仍然获得旧的(与旋转器) - 他们使用相同的 DatePickerDialog
和 TimePickerDialog
类,所以我没有期待任何东西
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.
感谢您的帮助。
,BetterPickers图书馆已经增加了对AOSP的Google即时和Google日历日期和时间选择器的支持。
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/
我还没有要正确实现图书馆tyczj建议,并且测试APK为它甚至ca使用ANR。更好的选择者似乎更加稳定。
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.