Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 73cdc69

Browse files
Update styles.xml
1 parent e5c3d26 commit 73cdc69

File tree

1 file changed

+23
-7
lines changed
  • ActionBarPreferenceActivityDemo/res/values

1 file changed

+23
-7
lines changed
Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1-
<resources>
1+
<resources xmlns:android="http://schemas.android.com/apk/res/android">
22

3-
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light" />
3+
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light.NoActionBar" />
44

55
<style name="AppTheme" parent="AppBaseTheme">
6-
<!-- this will set the actionbar background color, which currently is some sort of white -->
6+
<item name="android:listSeparatorTextViewStyle">@style/PreferenceListHeader</item>
77
<item name="colorPrimary">#ffF1F1F1</item>
8-
<!-- theses are just for the various textViews. I just like the default ones as of the primary color for the preference screen... -->
9-
<item name="android:textColorSecondary">@color/abc_primary_text_material_light</item>
10-
<item name="android:textColorTertiary">@color/abc_primary_text_material_light</item>
8+
<item name="android:textColorPrimary">@android:color/black</item>
9+
<item name="android:textColorSecondary">@android:color/black</item>
10+
<item name="android:textColorTertiary">@android:color/black</item>
11+
<item name="android:windowBackground">@android:color/white</item>
12+
<item name="colorControlNormal">#FF000000</item>
1113
</style>
1214

13-
</resources>
15+
<!-- just a fancy preference category title -->
16+
<style name="PreferenceListHeader">
17+
<item name="android:gravity">center_vertical</item>
18+
<item name="android:layout_height">wrap_content</item>
19+
<item name="android:layout_width">match_parent</item>
20+
<item name="android:paddingLeft">8dp</item>
21+
<item name="android:paddingRight">8dp</item>
22+
<item name="android:paddingTop">8dp</item>
23+
<item name="android:paddingBottom">8dp</item>
24+
<item name="android:textColor">#FF009688</item>
25+
<item name="android:textSize">14sp</item>
26+
<item name="android:textStyle">bold</item>
27+
</style>
28+
29+
</resources>

0 commit comments

Comments
 (0)