title: How can I change default elements color android layout?
body: <p>I don't know how I changed in my app the default color for the different elements of the layout out such as RadioButton, Checkbox, etc. The now saw white and I have a white background. In normal layouts I can hack this by setting "buttonTint" of the element to the color I want, but in the preferences.xml (with PreferenceScreen layout) I can't do that.</p>
  
  <p>This is what happens (See here = white checkbox):
  <a href="https://i.stack.imgur.com/XHreT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XHreT.png" alt="enter image description here"></a></p>
  
  <p>I don't know what I've changed but I can't rollback. This is my styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
  
  &lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorControlNormal"&gt;@color/white&lt;/item&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;item name="android:itemBackground"&gt;@color/white&lt;/item&gt; &lt;!-- Menu background color --&gt;
      &lt;item name="android:itemTextAppearance"&gt;@style/myCustomMenuTextAppearance&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;!-- Menu text color --&gt;
  &lt;style name="myCustomMenuTextAppearance" parent="@android:style/TextAppearance.Widget.IconMenu.Item"&gt;
      &lt;item name="android:textColor"&gt;#000&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="AppTheme.NoActionBar"&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;
  
  &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /&gt;
  
  &lt;style name="AnalyzeForeground" parent="android:Theme.Holo.Dialog"&gt;
      &lt;item name="android:alertDialogStyle"&gt;@style/CustomAlertDialogStyle&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;#FFFFFF&lt;/item&gt;
      &lt;item name="android:backgroundDimEnabled"&gt;false&lt;/item&gt;
      &lt;item name="android:textColor"&gt;#FFFFFF&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
      &lt;item name="android:textSize"&gt;12sp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="CustomAlertDialogStyle"&gt;
      &lt;item name="android:bottomBright"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:bottomDark"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:bottomMedium"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:centerBright"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:centerDark"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:centerMedium"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:fullBright"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:fullDark"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:topBright"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:topDark"&gt;@android:color/transparent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>Edit</p>
  
  <p>I add the color.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="colorPrimary"&gt;#0098D6&lt;/color&gt;
      &lt;color name="colorPrimaryDark"&gt;#006e99&lt;/color&gt;
      &lt;color name="colorAccent"&gt;#0098D6&lt;/color&gt;
  
      &lt;color name="transparent_white_90"&gt;#F2FFFFFF&lt;/color&gt;
  
      &lt;color name="rating7"&gt;#ff6666&lt;/color&gt;
      &lt;color name="rating8"&gt;#ff0000&lt;/color&gt;
      &lt;color name="rating9"&gt;#990000&lt;/color&gt;
      &lt;color name="rating10"&gt;#800080&lt;/color&gt;
  
      &lt;color name="white"&gt;#FFF&lt;/color&gt;
  
      &lt;color name="background_transparent"&gt;#585858&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>