I want to change the text color of DatePicker
.
I have tried couple of suggestions found here but nothing has worked for me. The text color, and the selected background stays the same.
The top header background did changed.
<style name="MyThemeDesign" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/btnColor</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="android:datePickerStyle">@style/MyDatePickerStyle</item>
</style>
<style name="MyDatePickerStyle" parent="@android:style/Widget.Material.Light.DatePicker">
<item name="android:headerBackground">@color/orange</item>
<item name="android:text">@color/white</item>
<item name="android:calendarTextColor">@color/white</item>
<item name="android:dayOfWeekBackground">@color/white</item>
<item name="android:selectedWeekBackgroundColor">@color/colorRed</item>
<item name="android:yearListSelectorColor">@color/colorRed</item>
<item name="android:colorPrimary">@color/white</item>
<item name="android:colorPrimaryDark">@color/white</item>
<item name="android:colorBackgroundCacheHint">@color/colorRed</item>
<item name="colorAccent">@color/white</item>
<item name="android:textColorPrimary">@color/white</item>
<item name="android:datePickerMode">calendar</item>
<item name="android:minDate">01/01/2017</item>
</style>