title: Change ActionBar color - Xamarin
body: <p>i've got a small question about the <code>ActionBar</code> in Android.
  I am using Xamarin Studio to make an application and i would like to change the color of the ActionBar. I've looked far and wide for a way to change the color but this is the only thing that i could find.</p>
  
  <pre><code>ColorDrawable colorDrawable = new ColorDrawable(Color.ParseColor("#ff0f62ae"));
              this.ActionBar.SetBackgroundDrawable(colorDrawable); 
  </code></pre>
  
  <p>I tought this would work but now i get this exception and i cannot figure out why this isnt working for me.</p>
  
  <p>This is the exception:</p>
  
  <pre><code>Object reference not set to an instance of an object
  </code></pre>
  
  <p>Can someone explain to me what i am doeing wrong and maybe show me how i can fix this.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>After an couple of comments i've tried this:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="AppTheme"
             parent="android:style/Theme.Holo.Light"&gt;
          &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"&gt;
          &lt;item name="android:background"&gt;@color/&lt;/item&gt;
          &lt;item name="andriod:titleTextStyle"&gt;@style/MyActionBarTextAppearance&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyActionBarTextAppearance" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"&gt;
         &lt;item name="android:textColor"&gt;@color/default_white&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>How can i add a custom color, and how do i assign this to my actionbar</p>