Currently the date picker is look like this.
I want to change the color date color ( currently set to black.)
Datepicker theme.
<style name="myDatePickertheme" parent="Theme.AppCompat.Light.Dialog">
<item name="android:headerBackground">@color/white</item>
<item name="android:textColorPrimary">@color/primary_text</item>
</style>
Solution Tried:
<item name="colorAccent">@color/white</item>
in the custom theme.
Min api=17
App theme
<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>
ANy hint?