Android的 - 新的日历样式的DatePicker和TimePicker [英] Android - New calendar style DatePicker and TimePicker
问题描述
是否有可能使用Android的最新版本使用了新的 DatePickerDialog
和 TimePickerDialog
的风格?他们可以在这里看到:<一href="http://9to5google.com/2013/05/30/google-calendar-for-android-updated-with-custom-colors-redesigned-datetime-pickers/"相对=nofollow>新风格的日期和时间采摘
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项目的最新消息透露,但事件与code,我仍然得到旧的(带微调) - 它们使用相同的 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添加了谷歌的支持,现在和谷歌日历的日期和时间选择器。
For future reference, the BetterPickers library has added support for the Google Now and Google Calendar date and time pickers from AOSP.
<一个href="https://github.com/derekbrameyer/android-betterpickers/">https://github.com/derekbrameyer/android-betterpickers/
我一直没能很好地实施tyczj建议库,测试APK它甚至会导致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.
这篇关于Android的 - 新的日历样式的DatePicker和TimePicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!