title: Primary color (sometimes) goes transparent
body: <p>I am developing with the latest SDK version (API 21) and Support Library 21.0.2 and I've been having trouble when trying to implement the new Material Design guidelines.</p>
  
  <p>Material Design says that I need to have my <code>primary color</code> and my <code>accent color</code> and apply them over my app. But sometimes when I open the app the <code>primary color</code> becomes transparent in some widgets, it goes back to normal until I close the app (with the Back Button) and launch it again.</p>
  
  <p>Here is an example of the <code>primary color</code> being transparent in my toolbar.</p>
  
  <p><img src="https://i.stack.imgur.com/ayneC.png" alt="enter image description here"></p>
  
  <p>I am using Teal 500 as my primary color and, as you can see, it is transparent only in the <code>android.support.v7.widget.Toolbar</code>. This also happens on my <code>Navigation Drawer</code> and (sometimes , sometimes not) in another random widgets.</p>
  
  <p>This is my Toolbar</p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/primary"
          android:minHeight="?attr/actionBarSize"
          app:theme="@style/ThemeOverlay.AppCompat.ActionBar" &gt;
  </code></pre>
  
  <p>I've tried with <code>@color/primary</code> and <code>?attr/colorPrimary</code> with no success.</p>
  
  <p>Here is my <code>Theme</code> (I don't know if it is related, but just in case):</p>
  
  <pre><code>&lt;style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/primary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/primary_dark&lt;/item&gt;     
      &lt;item name="colorAccent"&gt;@color/accent&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/accent&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;#fff&lt;/item&gt;
  
      &lt;item name="windowActionModeOverlay"&gt;true&lt;/item&gt;
      &lt;item name="android:textViewStyle"&gt;@style/Widget.TextView.White&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This just happens with the <code>primary color</code>, <code>accent color</code> works fine. My device is running 4.2.2 and I haven't checked on more devices.</p>
  
  <h2>Activity with Toolbar</h2>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/my_awesome_toolbar"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="?attr/colorPrimary"
              android:minHeight="?attr/actionBarSize"
              app:theme="@style/ThemeOverlay.AppCompat.ActionBar" /&gt;
  
          &lt;FrameLayout
              android:id="@+id/container"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              tools:ignore="MergeRootFrame" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- The navigation drawer --&gt;
  
      &lt;LinearLayout
          android:id="@+id/navdrawer"
          android:layout_width="240dp"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          android:orientation="vertical" &gt;
  
          &lt;!-- IN THIS IT ALSO HAPPENS --&gt;
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:paddingLeft="16dp"
              android:paddingRight="16dp"
              android:paddingBottom="16dp"
              android:orientation="vertical"
              android:background="@color/primary" &gt;
  
              &lt;!-- Some stuff --&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;ListView
              android:id="@+id/left_drawer"
              android:layout_height="match_parent"
              android:layout_width="match_parent"
              android:background="@color/black_light"
              android:divider="@color/grey"
              android:choiceMode="singleChoice" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>