title: Android EditTextPreference dialog style/theme
body: <p>I'm trying to style the dialog box that appears when I select an EditTextPreference in my SettingsActivity. So far I have been able to change the colour of the two buttons and the background with:</p>
  
  <pre><code>    dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setTextColor(0xffffffff);
      dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(0xffffffff);
      dialog.getWindow().setBackgroundDrawableResource(R.drawable.blue_background);
  </code></pre>
  
  <p><strong>But I am so far unable to change the title at the top of the dialog.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/X5Rcm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X5Rcm.png" alt="enter image description here"></a></p>
  
  <p>The colour of the 'Zone' title is being retrieved from a style I use for the preference list, it's being inherited and I can't figure out how to assign it a style that will change that title colour</p>
  
  <pre><code>&lt;style name="MyPreferenceTheme" parent="Theme.AppCompat.NoActionBar"&gt;
      &lt;item name="android:windowBackground"&gt;@color/care_call_white&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@drawable/text_colour_state&lt;/item&gt;
      &lt;item name="android:textColorSecondary"&gt;@drawable/text_colour_state&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Can anyone help with a style that could do this? Or with some code that could possibly set it instead? All my dialog boxes are styled the same but this one is trickier as it's part of the Preference so I can't customise it the same way I did with the others.</p>
  
  <p>Just to clarify, the only thing that needs changing is the "Zone" title.. I would like it to be white.</p>