title: Android Preference Category Styling
body: <p>I am trying to change the color of the text and the background of the preference categories. I searched the webs for answers, but nothing seems to be working. Has anyone successfully changed the color of the preference category attributes? Could I use a custom layout to change looks and feel of the preference category? I need some more direction. Please help</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>&lt;style name="Theme" parent="@style/android:Theme.Holo.Light"&gt;
      &lt;item name="android:actionBarStyle"&gt;@style/ActionBar&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="ActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid"&gt;
      &lt;item name="android:background"&gt;@color/ab_grey&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="PrefCatStyle" parent="Theme"&gt;
      &lt;item name="android:textColor"&gt;@color/text_green&lt;/item&gt;
      &lt;item name="android:background"&gt;@color/pref_back&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>colors</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="ab_grey"&gt;#adadad&lt;/color&gt; &lt;!--  #adadad--&gt; 
      &lt;color name="text_green"&gt;#000000&lt;/color&gt;
      &lt;color name="pref_back"&gt;#FFFFFF&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Part of my Preference Layout</p>
  
  <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;PreferenceCategory 
          android:title="Settings"
          android:key="settings_category"
          style="@style/PrefCatStyle"&gt;
  </code></pre>
  
  <p>And my part Manifest</p>
  
  <pre><code>    &lt;application
          android:allowBackup="true"
          android:icon="@drawable/icon"
          android:label="@string/app_name"
          android:theme="@style/Theme" &gt; 
  ...
          &lt;activity
              android:name=".SettingsPrefActivity"
              android:parentActivityName=".MainActivity"
              android:theme="@style/emTextTheme"&gt;
  </code></pre>
  
  <p>Thanks</p>