Android 如何在默认日期选择器中更改日期颜色
当前日期选择器为 我想更改颜色日期颜色(当前设置为黑色。) 日期选择器主题Android 如何在默认日期选择器中更改日期颜色,android,datepicker,Android,Datepicker,当前日期选择器为 我想更改颜色日期颜色(当前设置为黑色。) 日期选择器主题 <style name="myDatePickertheme" parent="Theme.AppCompat.Light.Dialog"> <item name="android:headerBackground">@color/white</item> <item name="android:textColorPrimary"&
<style name="myDatePickertheme" parent="Theme.AppCompat.Light.Dialog">
<item name="android:headerBackground">@color/white</item>
<item name="android:textColorPrimary">@color/primary_text</item>
</style>
@颜色/白色
@颜色/主文本
尝试的解决方案:
<item name="colorAccent">@color/white</item>
@color/white
在自定义主题中
最低空气污染指数=17
应用程序主题
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:background">@color/primary_background</item>
<item name="android:colorPrimaryDark">@color/primary_background</item>
<item name="android:navigationBarColor">@color/primary_background</item>
<item name="android:popupBackground">@color/primary_background</item>
<item name="android:alertDialogTheme">@style/myDialog</item>
<item name="android:datePickerDialogTheme">@style/myDatePickertheme</item>
</style>
@颜色/主背景
@颜色/主背景
@颜色/主背景
@颜色/主背景
@样式/我的对话框
@style/myDatePickertheme
有什么提示吗?您是否尝试创建一个自定义的日期选择器?你可以试试这个解决办法吗 你试过答案了吗?希望它能帮助你!是的,我试过了。。但是没有帮助@Tahmidrah picker始终在应用程序主题中选择colorPrimary和colorAccent。请检查你的日历颜色是否相同?试试这个,我想你更接近解决方案了。请尝试感谢这个解决方案,我想如果什么都不发生,这将是最后一个解决方案。我认为改变字体颜色,简单的改变就可以了。