title: AppCompat ActionBar Background Color
body: <p>I have this style.xml inside my Android app:</p>
  
  <pre><code>&lt;resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;style name="OrangeTheme" parent="@style/Theme.AppCompat"&gt;
      &lt;item name="android:actionBarStyle" tools:ignore="NewApi"&gt;@style/OrangeTheme.OrangeActionBar&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;true&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="OrangeTheme.OrangeActionBar" parent="@style/Widget.AppCompat.ActionBar"&gt;
      &lt;item name="android:background"&gt;@color/orange&lt;/item&gt;
      &lt;item name="background"&gt;@color/orange&lt;/item&gt;
      &lt;item name="android:backgroundStacked"&gt;@color/orange&lt;/item&gt;
      &lt;item name="android:backgroundSplit"&gt;@color/orange&lt;/item&gt;
      &lt;item name="android:titleTextStyle"&gt;@style/Theme.MyAppTheme.ActionBar.TitleTextStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="Theme.MyAppTheme.ActionBar.TitleTextStyle" parent="android:style/TextAppearance.Holo.Widget.ActionBar.Title"&gt;
      &lt;item name="android:textColor"&gt;@color/black&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have searched StackOverflow and Google, but nothing helped. I wasn't able to change the <code>ActionBar</code> background color.</p>
  
  <p>Inside my <code>MainActivity</code>, I use this code:</p>
  
  <pre><code> public void restoreActionBar() {
      ActionBar actionBar = getSupportActionBar();
      actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
      actionBar.setDisplayShowTitleEnabled(true);
      actionBar.setTitle(mTitle);
  }
  </code></pre>
  
  <p>I tried not to use AppCompat, but then my name has a lot of errors. It extends <code>ActionBarActivity</code>. If I change it to <code>FragmentActivity</code> I can't use <code>getSupportActionBar()</code> and without it my <code>getActionBar()</code>, is always <code>null</code>.</p>
  
  <pre><code>minSdkVersion 19
  targetSdkVersion 21
  </code></pre>
  
  <p>So right now I am not able to change it. I tried renaming the parent of my style theme. I tried using <code>andrioud:background</code> and <code>background</code>. The only thing that is changing is when I use another parent like
  <code>Theme.App.Compat.Light</code> or <code>Theme.AppCompat.Light.DarkActionBar</code>.</p>
  
  <p>Does someone have an idea, how I could be able to change the colors and other stuff, on runtime?</p>