Implements the "night theme". I don't know how to change the background color of ListPreference.
PreferenceActivity "day" theme
PreferenceActivity night theme
As you can see, only to pick up the color of the title of "night" colors.
I use the following theme:
<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/SettingsFragmentStyle</item>
<item name="colorControlNormal">@color/icons</item>
</style>
<style name="SettingsFragmentStyle" parent="@style/PreferenceThemeOverlay.v14.Material">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="android:textColorPrimary">@color/primary_text</item>
<item name="android:textColorSecondary">@color/secondary_text</item>
<item name="android:textColorTertiary">@color/accent</item>
<item name="android:background">@color/background_window</item>
</style>
What parameters are responsible for:
- Backgrounds ListPreference;
- Text color ListPreference items;
- Color "switches" ListPreference - I want to replace on the "accent" color (orange in my case).
Thanks for the help.