title: Android Toolbar color not being set by colorPrimary
body: <p>according to the google docs, I should be able to set the color of Toolbar background using colorPrimary in the theme, but it's not working. Here's what I have:</p>
  
  <p>styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/light_purple&lt;/item&gt;
          &lt;!-- colorPrimaryDark is used for the status bar --&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/dark_purple&lt;/item&gt;
          &lt;!-- colorAccent is used as the default value for colorControlActivated,
               which is used to tint widgets --&gt;
          &lt;item name="colorAccent"&gt;@color/dark_purple&lt;/item&gt;
  
          &lt;item name="colorSwitchThumbNormal"&gt;@color/light_purple&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>activity layout:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity"&gt;
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:minHeight="?attr/actionBarSize"
          android:theme="@style/AppTheme"
          tools:showIn="@layout/activity_main"&gt;
          &lt;TextView
              android:id="@+id/pivot_title_image"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:text="toolbar text view" /&gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  ...
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Activity:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
      }
  </code></pre>
  
  <p>I have set my app theme to AppTheme in the manifest: <code>android:theme="@style/AppTheme" &gt;</code>
  I have setup android support appcompat in build.gradle </p>
  
  <pre><code>compile 'com.android.support:appcompat-v7:22.1.0'
  </code></pre>
  
  <p>But my toolbar, is still not colored. 
  <strong>I know I can manually set the toolbar background color manually in the layout file</strong>, but shouldn't it get its color from the theme? as you can see the accent colors are working.</p>
  
  <p><img src="https://i.stack.imgur.com/VzRgV.png" alt="enter image description here"></p>