如何使用自定义的日期选择器和Timepicker皮肤? [英] How do you use custom Datepicker and Timepicker skins?

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

问题描述

我想用一个自定义的皮肤我Datepickers和Timepickers。更改背景XML没有做的伎俩(它改变的背景设定,而不是它的每个按键)。该API是痛苦短,没有任何人的外表(<一href="http://developer.android.com/reference/android/widget/DatePicker.html">http://developer.android.com/reference/android/widget/DatePicker.html )。是否可以使用自定义皮肤Datepickers和Timepickers的按钮?

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

和在ICS风格

<一个href="https://github.com/luminousman/android-datepicker">https://github.com/luminousman/android-datepicker

希望这将帮助你....

hope this will help you....

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

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