Android的 - 新的日历样式的DatePicker和TimePicker [英] Android - New calendar style DatePicker and TimePicker

查看:1323
本文介绍了Android的 - 新的日历样式的DatePicker和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆