title: Android styles: how to change colors in styles.xml
body: <p>I want to change some colors of android UI elements. But I would prefer to set a default tint color, which applies to all UI elements. I am not sure if this is possible.
  If not, I want to set the "tint"-color of some UI elements, as shown below. Can anybody enlighten me?</p>
  
  <p><img src="https://i.stack.imgur.com/t6n0F.png" alt="colors of text and dividers in datepicker"></p>
  
  <p><img src="https://i.stack.imgur.com/1tHNY.png" alt="highlight colors of buttons"></p>
  
  <p><img src="https://i.stack.imgur.com/DDyaI.png" alt="enabled color of switch"></p>
  
  <p><img src="https://i.stack.imgur.com/sWtSF.png" alt="progress color of seekbar"></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Based on what Entreco suggested:</p>
  
  <p>My styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/brown&lt;/item&gt;
          &lt;item name="android:textColorSecondary"&gt;@color/brown&lt;/item&gt;
          &lt;item name="android:textColorTertiary"&gt;@color/brown&lt;/item&gt;
          &lt;item name="android:textColorPrimaryInverse"&gt;@color/brown&lt;/item&gt;
          &lt;item name="android:textColorSecondaryInverse"&gt;@color/brown&lt;/item&gt;
          &lt;item name="android:textColorTertiaryInverse"&gt;@color/brown&lt;/item&gt;
  
          &lt;item name="colorPrimary"&gt;@color/blue&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/blue&lt;/item&gt;
  
          &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
          &lt;item name="actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
  
      &lt;/style&gt;
      &lt;!-- style for the action bar backgrounds --&gt;
      &lt;style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar"&gt;
          &lt;item name="android:titleTextStyle"&gt;@style/MyTheme.ActionBar.TitleTextStyle&lt;/item&gt;
          &lt;item name="android:subtitleTextStyle"&gt;@style/MyTheme.ActionBar.TitleTextStyle&lt;/item&gt;
          &lt;item name="android:background"&gt;@color/brown&lt;/item&gt;
          &lt;item name="titleTextStyle"&gt;@style/MyTheme.ActionBar.TitleTextStyle&lt;/item&gt;
          &lt;item name="subtitleTextStyle"&gt;@style/MyTheme.ActionBar.TitleTextStyle&lt;/item&gt;
          &lt;item name="background"&gt;@color/brown&lt;/item&gt;
      &lt;/style&gt;
      &lt;style name="MyTheme.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance"&gt;
          &lt;item name="android:textColor"&gt;@color/brown_light&lt;/item&gt;
          &lt;item name="android:textSize"&gt;24sp&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>And my values-v21/styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="AppTheme" parent="AppTheme.Base"&gt;
          &lt;item name="android:colorPrimary"&gt;@color/blue&lt;/item&gt;
          &lt;item name="android:colorPrimaryDark"&gt;@color/blue&lt;/item&gt;
          &lt;!-- &lt;item name="android:colorAccent"&gt;@color/white&lt;/item&gt; --&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>And in my Manifest:</p>
  
  <pre><code>&lt;application android:theme="@style/AppTheme.Base" &gt;
      ...
  &lt;/application&gt;
  </code></pre>
  
  <p>But the primary color is still the same...???</p>