title: Text color of ListPreference entries is white instead of black
body: <p>I have a settings activity</p>
  
  <pre><code>public class SettingsActivity extends BaseActivity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_settings);
  </code></pre>
  
  <p>And a fragment:</p>
  
  <pre><code>public class SettingsFragment extends PreferenceFragmentCompat {
  
  
      @Override
      public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
          setPreferencesFromResource(R.xml.settings, rootKey);
      }
  }
  </code></pre>
  
  <p>activity_settings.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      &gt;
  
          &lt;TextView
              android:id="@+id/activitySettings_updateFrequencyValueText"
              android:layout_width="50dp"
              android:layout_height="wrap_content"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintBottom_toBottomOf="@id/view_settings_fragment"
              android:layout_marginBottom="0dp"
              app:layout_constraintTop_toTopOf="parent"
              android:layout_marginTop="0dp"
              android:ellipsize="marquee"
              android:gravity="center"
              android:textSize="15sp"
              android:paddingStart="10dp"
              android:paddingLeft="10dp"
              &gt;
          &lt;/TextView&gt;
          &lt;fragment
              android:name="com.myapp.SettingsFragment"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/view_settings_fragment"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              android:layout_marginBottom="0dp"
              app:layout_constraintTop_toTopOf="parent"
              android:layout_marginTop="0dp"
              /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>settings.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;ListPreference
          android:key="bus_update_frequency"
          android:title="@string/bus_update_frequency"
          android:summary="@string/bus_update_frequency_desc"
          android:entries="@array/bus_update_frequency_entries"
          android:entryValues="@array/bus_update_frequency_values"
          android:defaultValue="10 seconds"
          /&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p>res/values/arrays.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;string-array name="bus_update_frequency_entries"&gt;
          &lt;item&gt;10 seconds&lt;/item&gt;
          &lt;item&gt;20 seconds&lt;/item&gt;
          &lt;item&gt;30 seconds&lt;/item&gt;
          &lt;item&gt;40 seconds&lt;/item&gt;
          &lt;item&gt;50 seconds&lt;/item&gt;
          &lt;item&gt;60 seconds&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;string-array name="bus_update_frequency_values"&gt;
          &lt;item&gt;10&lt;/item&gt;
          &lt;item&gt;20&lt;/item&gt;
          &lt;item&gt;30&lt;/item&gt;
          &lt;item&gt;40&lt;/item&gt;
          &lt;item&gt;50&lt;/item&gt;
          &lt;item&gt;60&lt;/item&gt;
      &lt;/string-array&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Everything works great the settings page looks like so:
  <a href="https://i.stack.imgur.com/quDI6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/quDI6.png" alt="Settings Page"></a></p>
  
  <p>But when you open the ListPreference the text is in white for some reason. It looks like this, you can see that the text is in there when you highlight it.</p>
  
  <p><a href="https://i.stack.imgur.com/Sddtp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sddtp.png" alt="Settings Page ListPreference"></a></p>
  
  <p>I have not figured out how to change it to black since the ListPreference has no textColor attribute. Any ideas?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I think what is causing this is my alert dialogs are the maroon color in the action bar, with white text. So how do I change either the background color of the ListPreference to that color or change the text color through themes?</p>
  
  <p><strong>EDIT2</strong>:</p>
  
  <p>Nevermind, changing the color of the alert text did not change the color of the ListPreference text. </p>