I implement the "night theme". I do not understand how to change the background color of the ListPreference
PreferenceActivity daytime theme:
PreferenceActivity night theme:
As you can see, only the header color picked up from the "night" colors.
I use the following topic:
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary_dark</item> <item name="colorAccent">@color/accent</item> <item name="android:textColor">@color/primary_text</item> <item name="android:textColorSecondary">@color/secondary_text</item> <item name="toolbarStyle">@style/Toolbar</item> <item name="android:windowBackground">@color/background_window</item> <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> <item name="colorControlNormal">@color/icons</item> </style> <style name="AppTheme.Settings" parent="AppTheme" />
What parameters are responsible for:
- Background ListPreference;
- The text color of the ListPreference items;
- Color of "switches" ListPreference - I want to replace with "accent" color (in my case orange).
Thanks for the help.