如何使用自定义Datepicker和Timepicker外观? [英] How do you use custom Datepicker and Timepicker skins?

查看:174
本文介绍了如何使用自定义Datepicker和Timepicker外观?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用自定义皮肤为我的Datepickers和Timepickers。更改XML中的背景不会做到这一点(它将背景改为集合,而不是每个按钮)。 API很痛苦,没有任何外观( http://developer.android。 com / reference / android / widget / DatePicker.html )。可以为Datepickers和Timepickers的按钮使用自定义皮肤吗?

解决方案

好的,你正在寻找自定义主题datepicker和时间选择器..
这将允许您更改按钮的主题。



https://github.com/luminousman/DatePicker



和ICS样式



https://github.com/luminousman/android-datepicker



希望这会帮助你....


I would like to use a custom skin for my Datepickers and Timepickers. Changing the background in XML doesn't do the trick (it changes the background to the set, not each of its buttons). The API is painfully short and has nothing about appearance ( http://developer.android.com/reference/android/widget/DatePicker.html ). Is it possible to use a custom skin for the buttons of Datepickers and Timepickers?

解决方案

ok, you are looking for custom theme for datepicker and time picker.. This will allow you to change theme of buttons..

https://github.com/luminousman/DatePicker

and in ICS style

https://github.com/luminousman/android-datepicker

hope this will help you....

这篇关于如何使用自定义Datepicker和Timepicker外观?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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