I've got a DatePickerDialog
of which I would like to change the background color of the header. I've made it so that the default background of the whole application is white but now, because of the white text in the header of the Dialog
it's not visible and looks very weird.
I've tried to use many other answers from SO but no luck there, this is the style I have set up in my styles.xml
<style name="DialogTheme" parent="Theme.AppCompat.Light.Dialog">
<item name="android:textSize">12dp</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorPrimary</item>
<item name="android:headerBackground">@color/colorPrimary</item>
</style>
Much appreciated!
Edit: For now, since I don't use many layouts in this app, I've fixed it by setting the background for each element to white manually. A fix would still be nice...