title: How To Change Text Color Of Preference In Androidx
body: <p>I want to change text color for Preference in Preference.xml file</p>
  
  <p>XML Code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.preference.PreferenceScreen
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
      &lt;androidx.preference.Preference
          android:key="pref_entries"
          android:title="@string/settings_entries"
          android:summary="0"
          android:enabled="true"
          app:iconSpaceReserved="false" /&gt;
  &lt;/androidx.preference.PreferenceScreen&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I Tried adding textcolor in xml file but it is not working</p>
  
  <p>Java Code
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> prefEntries = pm.findPreference(Const.PREF_ENTRIES);
         </code></pre>
  </div>
  </div>
  </p>
  
  <p>How to Change the pref text color</p>