title: Android Preference Fragment Text Color
body: <p>I want to change the text color in android preferences fragment. I am currently using a custom theme to change the checkbox image, background, onClick highlighting and it all works great...besides the text color. I don't want to use a default theme, I want to have my own theme so it all looks how I want to but just change the text color, can someone please help.</p>
  
  <p>styles.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;style name="selectedTextStyle"&gt;  
          &lt;item name="android:textSize"&gt;18sp&lt;/item&gt;
      &lt;/style&gt;
      &lt;style name="buttonTextStyle"&gt;  
          &lt;item name="android:textSize"&gt;20sp&lt;/item&gt;
      &lt;/style&gt;
      &lt;style name="PreferencesTheme" &gt;
          &lt;item name="android:windowBackground"&gt;@drawable/lists_background&lt;/item&gt;
          &lt;item name="android:listViewStyle"&gt;@style/listViewPrefs&lt;/item&gt;
          &lt;item name="android:checkboxStyle"&gt;@style/MyCheckbox&lt;/item&gt;
  
      &lt;/style&gt;
      &lt;style name="MyTextAppearance" parent="@android:style/TextAppearance"&gt;
          &lt;item name="android:textColor"&gt;@color/black&lt;/item&gt;
        &lt;/style&gt;
      &lt;style name="listViewPrefs" parent="@android:Widget.ListView"&gt;
          &lt;item name="android:listSelector"&gt;@layout/list_selector_master&lt;/item&gt;
          &lt;item name="android:textAppearance"&gt;@style/MyTextAppearance&lt;/item&gt;
      &lt;/style&gt;
      &lt;style name="MyCheckbox" parent="android:Widget.CompoundButton.CheckBox"&gt;
          &lt;item name="android:button"&gt;@drawable/btn_check&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>Manifest:</p>
  
  <pre><code>        &lt;activity
              android:name="com.package.SettingsActivity"
              android:theme="@style/PreferencesTheme"
              android:configChanges="keyboard|orientation" &gt;
          &lt;/activity&gt;
  </code></pre>
  
  <p>Activity:</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  import android.preference.PreferenceFragment;
  
  public class SettingsActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          // Display the fragment as the main content.
          getFragmentManager().beginTransaction()
                  .replace(android.R.id.content, new SettingsFragment())
                  .commit();
  
      }
      public static class SettingsFragment extends PreferenceFragment {
          @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
  
              // Load the preferences from an XML resource
              addPreferencesFromResource(R.xml.preferences);
  
          }
      }
  
  }
  </code></pre>