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

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

问题描述

我想为我的日期选择器和时间选择器使用自定义外观.更改 XML 中的背景并不能解决问题(它将背景更改为集合,而不是每个按钮).API 非常短,并且没有任何外观( http://developer.android.com/reference/android/widget/DatePicker.html ).日期选择器和时间选择器的按钮是否可以使用自定义皮肤?

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 风格

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

希望对你有帮助....

hope this will help you....

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

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