任何人都可以告诉我如何在 calendarview
中更改月份的颜色,但在 styles.xml(android 主题)中找不到任何合理的属性来更改——
代码:
<style name="Theme" parent="@android:style/Theme.Holo">
<item name="android:calendarViewStyle">@style/Calendar</item>
</style>
<style name="Calendar" parent="@android:style/Widget.Holo.CalendarView">
<item name="android:weekNumberColor">#66FFFFFF</item>
<item name="android:weekDayTextAppearance">@style/weekDays</item>
</style>
<style name="weekDays">
<item name="android:textColor">#66FFFFFF</item>
</style>
最佳答案
android:theme="@style/testTheme"
使用此主题或以父主题为主题的自定义主题。
让它变白
要选择白色以外的颜色,请使用以下方法更改颜色
android:textColorPrimary="@color/yourColor"
关于android - 更改日历 View 的月份颜色(Android),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8724413/