title: ListPreference item row text color
body: <p>I'm searching for this for a couple of days but cannot find an answer that I can manage to get working for now.</p>
  
  <p>I would like to allow the user to select in a list different themes for the whole application for day/night purposes. 
  The issue is that I can't find a way to change the colors of the text for a ListPreference row Item textColor. Some solutions I've found are talking about using the attribute </p>
  
  <pre><code>&lt;item name="android:textColorPrimary"&gt;@color/red_color&lt;/item&gt;
  </code></pre>
  
  <p>in the style in order to set that text. However this has no effect during my tests using API 11. The results I obtained after many attempts is almost always the same: When setting different styles for the application I can change the title color for the ListPreference but not the row items text color:</p>
  
  <p>Here is the screenshot : </p>
  
  <p><a href="https://i.stack.imgur.com/jHJFR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jHJFR.png" alt="Screenshot"></a>
  </p>
  
  <p>These are the styles I am using:</p>
  
  <pre><code>&lt;!-- Application theme. --&gt;
  &lt;style name="AppTheme.Daylight" parent="AppBaseTheme"&gt;
      &lt;item name="android:background"&gt;@color/white&lt;/item&gt;
      &lt;item name="android:panelBackground"&gt;@color/gray&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/black&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="AppTheme.Dusk" parent="AppBaseTheme"&gt;
      &lt;item name="android:background"&gt;@color/black&lt;/item&gt;
  &lt;item name="android:panelBackground"&gt;@color/gray&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/salmon&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="AppTheme.Night" parent="AppBaseTheme"&gt;
      &lt;item name="android:background"&gt;@color/black&lt;/item&gt;
      &lt;item name="android:panelBackground"&gt;@color/gray&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/red&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This is the display preference fragment xml file </p>
  
  <pre><code>&lt;PreferenceCategory 
      android:title="@string/preference_display_settings"
      android:key="display_preferences"&gt;
      &lt;ListPreference
          android:key="display_mode"
          android:title="@string/preference_display_settings"
          android:entries="@array/preference_display_mode_available"
          android:entryValues="@array/preference_display_mode_values" /&gt;
  &lt;/PreferenceCategory&gt;
  </code></pre>
  
  <p>Basically the question I'm asking is:
  - How to change the color of the entries text color in a ListPreference? </p>
  
  <p>Some articles on the web are explaining how to create custom ListPreference view such as this article <a href="https://web.archive.org/web/20181006071316/http://blog.isys-labs.com:80/creating-a-custom-listpreference" rel="nofollow noreferrer">Custom ListPreference</a></p>
  
  <ul>
  <li>Is creating a curstom view the only way to change the text color or is there an attribute or property that I am missing for the ListPreference View ?</li>
  </ul>
  
  <p>Lots of thanks in advance, I'm a newbie in Android and just got out of the Coursera MOOC to create this open source application.</p>