OSDN Git Service

Update the color of the preference category
authorSunny Shao <sunnyshao@google.com>
Fri, 27 Sep 2019 05:16:44 +0000 (13:16 +0800)
committerSunny Shao <sunnyshao@google.com>
Fri, 27 Sep 2019 05:57:04 +0000 (13:57 +0800)
Use the new attribute preferenceCategoryTitleTextColor to change the color of
the preference category.

Bug: 117402186
Test: manual view
Change-Id: If2df5529a63ff9cd96f242a9ea5f3dac053b0fd2

res/values/styles_preference.xml

index 1f4421f..3e6f772 100644 (file)
@@ -27,6 +27,8 @@
         <item name="twoStateButtonPreferenceStyle">@style/TwoStateButtonPreference</item>
         <item name="preferenceCategoryTitleTextAppearance">@style/TextAppearance.CategoryTitle
         </item>
+        <!-- For preference category color -->
+        <item name="preferenceCategoryTitleTextColor">?android:attr/textColorSecondary</item>
         <item name="preferenceFragmentCompatStyle">@style/SettingsPreferenceFragmentStyle</item>
     </style>