我想创建一个自定义对话框,基本上我使用DatePickerDialog.THEME_HOLO_DARK但我想改变分的颜色和文字颜色。
I'm trying to create a custom dialog, basically I'm using DatePickerDialog.THEME_HOLO_DARK but I want to change the "divider" color and the text color.
我要蓝色的线条和文字颜色变为红色。
I want to change the blue lines and the text color to red.
在此先感谢!
编辑:
使用这个code:
<style name="testo" parent="@android:style/Widget.DeviceDefault.DatePicker">
<item name="android:divider">@drawable/dialog_divider</item>
</style>
这是我所得到的:
this is what I get:
被拉伸的分隔基本上是一条红线。
the drawable for the divider is basically a red line..
我知道这是一个迟到的答复,但我想那些谁经历过或将来遇到此问题分享我的发现。
I know it's a late reply but I would like to share my findings with those who experienced or will experience this problem in the future.
我搜索了很多地方,我发现的唯一的解决办法是SimonVT的拾荒者。
I searched many places, and the only solution I found was SimonVT's Pickers.
实施库之后,这是很容易改变颜色。在numberpicker-所述库使用的图像可以简单地替换为所期望的图案。
After implementing the library, it was very easy to change the colors. In numberpicker- the library uses images that can be simply replaced with the desired designs.
这个例子有三个采摘:NumberPicker,的DatePicker和TimerPicker
This example has three pickers: NumberPicker, DatePicker and TimerPicker.
https://github.com/rodrigobusata/android-pickers
我希望你觉得它有用。