title: How to get the new NavigationView to play nice with status bar scrim?
body: <p>I've been playing with Google's new design support library and it's a blast! I'm just a little stumped though on the navigation view. All the things I read say that the <code>NavigationView</code> is smart enough to handle transparent scrim on its own. (The <a href="http://android-developers.blogspot.com/2015/05/android-design-support-library.html" rel="noreferrer">android-developers</a> post, for one; search for scrim). Anyway, when I tried to do it I get the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/DiJ1dl.png" alt="Transparent Scrim"></p>
  
  <p>Which is great; Exactly what I want. Except for one thing. When the drawer is closed, the scrim is an ugly dark grey, not my primaryColorDark . . .</p>
  
  <p><img src="https://i.stack.imgur.com/LllCel.png" alt="enter image description here"></p>
  
  <p>Here's my layout:</p>
  
  <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;android.support.design.widget.CoordinatorLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"&gt;
  
      &lt;LinearLayout
          android:id="@+id/linear_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include layout="@layout/toolbar" /&gt;
  
          &lt;fragment
              android:id="@+id/fragment"
              android:name="com.gmail.rixx.justin.envelopebudget.HomeFragment"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              tools:layout="@layout/fragment_home" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/fab"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:layout_gravity="end|bottom"
          android:layout_margin="@dimen/fab_margin"
          app:backgroundTint="@color/accent"
          android:src="@drawable/ic_add_white_24dp" /&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
  &lt;android.support.design.widget.NavigationView
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_gravity="start"
      app:headerLayout="@layout/drawer_header"
      app:menu="@menu/drawer" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>The Activity code:</p>
  
  <pre><code>public class Home extends ActionBarActivity {
  
      private Toolbar mToolbar;
      private DrawerLayout mDrawerLayout;
      private Context mContext = this;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_home);
  
          setUpToolbar();
          setUpNavDrawer();
  
          findViewById(R.id.fab).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(mContext, NewTransactionActivity.class));
              }
          });
      }
  
      private void setUpToolbar() {
          mToolbar = (Toolbar) findViewById(R.id.toolbar);
          if (mToolbar != null) {
              setSupportActionBar(mToolbar);
          }
      }
  
      private void setUpNavDrawer() {
          if (mToolbar != null) {
              mDrawerLayout = (DrawerLayout)     findViewById(R.id.drawer_layout);
  
              getSupportActionBar().setDisplayHomeAsUpEnabled(true);
              mToolbar.setNavigationIcon(R.drawable.ic_menu_white_24dp);
              mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      mDrawerLayout.openDrawer(GravityCompat.START);
                  }
              });
          }
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.menu_home, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p>And v21/styles:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;style name="AppTheme" parent="AppTheme.Base"&gt;
          &lt;item name="android:colorPrimary"&gt;@color/primary&lt;/item&gt;
          &lt;item name="android:colorPrimaryDark"&gt;@color/primary_dark&lt;/item&gt;
          &lt;item name="android:colorAccent"&gt;@color/accent&lt;/item&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/primary_text&lt;/item&gt;
          &lt;item name="android:textColorSecondary"&gt;@color/secondary_text&lt;/item&gt;
  
          &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
          &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
  
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I modeled after Chris Banes's CheeseSquare app on <a href="https://github.com/chrisbanes/cheesesquare" rel="noreferrer">github</a> but I'm not getting the behavior I want.</p>
  
  <p>I've tried removing the <code>windowDrawsSystemBarBackgrounds</code> and <code>statusBarColor</code> from v21/styles, and I get the proper color, but the status bar never goes transparent:</p>
  
  <p><img src="https://i.stack.imgur.com/cANJ3l.png" alt="enter image description here"></p>
  
  <p>Help would be appreciated. This is new stuff, So I know we're all learning.</p>
  
  <p>Thanks for reading!</p>
  
  <p>-Justin</p>