title: Change background color of an android actionbar, base tutorial
body: <p>I'm trying to change the ActionBar color of a <em>New Android Application made by Eclipse wizard</em> following the android tutorial (<a href="https://developer.android.com/training/basics/actionbar/styling.html#CustomBackground" rel="nofollow noreferrer">here</a>), but i got several problems.</p>
  <p>I set minSdkVersion to 10 (it should be android 2.1 or so).</p>
  <p>When i paste this code into themes.xml (as said by the tutorial):</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
      &lt;!-- the theme applied to the application or activity --&gt;
      &lt;style name=&quot;CustomActionBarTheme&quot;
             parent=&quot;@style/AppTheme&quot;&gt;
          &lt;item name=&quot;android:actionBarStyle&quot;&gt;@style/MyActionBar&lt;/item&gt;
  
          &lt;!-- Support library compatibility --&gt;
          &lt;item name=&quot;actionBarStyle&quot;&gt;@style/MyActionBar&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;!-- ActionBar styles --&gt;
      &lt;style name=&quot;MyActionBar&quot;
             parent=&quot;@style/AppTheme&quot;&gt;
          &lt;item name=&quot;android:background&quot;&gt;#FFFFFF&lt;/item&gt;
  
          &lt;!-- Support library compatibility --&gt;
          &lt;item name=&quot;background&quot;&gt;#FFFFFF&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>Eclipse give to me those errors:</p>
  <ul>
  <li>line 5: android:actionBarStyle requires API level 11 (current min is
  10)</li>
  <li>line 8: error: Error: No resource found that matches the given
  name: attr 'actionBarStyle'.</li>
  <li>line 16: error: Error: No resource found
  that matches the given name: attr 'background'.</li>
  </ul>
  <p>I modded little things (Base theme and Color), however the clean code is in the tutorial.</p>
  <p>My Styles.xml is here:
  </p>
  <pre><code>    &lt;!--
          Base application theme, dependent on API level. This theme is replaced
          by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
      --&gt;
      &lt;style name=&quot;AppBaseTheme&quot; parent=&quot;android:Theme.Light&quot;&gt;
          &lt;!--
              Theme customizations available in newer API levels can go in
              res/values-vXX/styles.xml, while customizations related to
              backward-compatibility can go here.
          --&gt;
      &lt;/style&gt;
  
      &lt;!-- Application theme. --&gt;
      &lt;style name=&quot;AppTheme&quot; parent=&quot;AppBaseTheme&quot;&gt;
          &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  <p>What's the problem?</p>