SettingsActivity: Define preferenceTheme for AppCompat

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-04-29 02:11:09 +05:30
parent e7e571a301
commit 4fc1e61a83
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,7 @@
<activity <activity
android:name=".activity.SettingsActivity" android:name=".activity.SettingsActivity"
android:label="@string/settings" android:label="@string/settings"
android:theme="@style/SettingsTheme"
android:parentActivityName=".activity.MainActivity" /> android:parentActivityName=".activity.MainActivity" />
<activity <activity

View File

@ -2,6 +2,9 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar" /> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar" />
<style name="SettingsTheme" parent="AppTheme">
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
</style>
<style name="fab_label" parent="android:TextAppearance.DeviceDefault.Inverse"> <style name="fab_label" parent="android:TextAppearance.DeviceDefault.Inverse">
<item name="android:background">@drawable/fab_label_background</item> <item name="android:background">@drawable/fab_label_background</item>
</style> </style>