title: Set Background Drawable for Action Bar not working with color in colors.xml
body: <p>I have the following code in my fragment:</p>
  
  <pre><code> getActionBar().setBackgroundDrawable(new ColorDrawable(Color.Black));
  </code></pre>
  
  <p>when I click on a button in my fragment, it calls this code. I sets the actionbar to black. However if I change the color to <code>R.color.primaryColor</code> it keeps setting the actionbar to a medium grey color. Its so weird though. If I set it to <code>R.color.primaryColorDark</code>it gives me the same grey color. </p>
  
  <p>I am using support action bar which is actually a toolbar.</p>
  
  <p>Am I missing something obvious here?</p>
  
  <p>[EDIT]</p>
  
  <p>Ok i have discovered if I used the android colors liek <code>Color.BLUE</code> it works fine, it is giving me the grey color when i use <code>R.colors.mycustomcolor</code></p>
  
  <p>here is my colors.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="primaryColor"&gt;#2196F3&lt;/color&gt;
      &lt;color name="primaryColorDark"&gt;#1976D2&lt;/color&gt;
      &lt;color name="accentColor"&gt;#1976D6&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>and when i set the action bar to any of these colors they come out grey.</p>
  
  <p>I only have ONE color.xml so its not taking the wrong color for a different layout type.</p>