title: Notification Bar is grey after implementing Nav Drawer
body: <p>I am trying to learn implementations of Navigation Drawer in Android.</p>
  
  <p>In one activity, i have made the Navigation Drawer come under the Status Bar(transparent) and over the App Bar and everything works fine.(left Screenshot)</p>
  
  <p>In another activity in the same App, i am trying to create Navigation Drawer that pulls up under the App Bar. But here, the status bar turns grey for some reason(whether nav drawer is open or closed)(Right Screenshot). Other than this, everything seems fine.</p>
  
  <p>Below is the screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/eAhb1.png" alt="enter image description here"></p>
  
  <p>The green Nav Drawer is a fragment.</p>
  
  <p>What i want to know is how to make the status normal(darker shade of. Please remember, if i click that twin arrow icon in the App Bar, it will take me to another activity which contains another Nav Drawer which works like the one in Material Design(Full height of the screen and comes under a transparent Status Bar). This is shown in the left side of the screenshot.</p>
  
  <p>Below is the code:</p>
  
  <p><strong>MainActivity.java:</strong></p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
      Toolbar toolbar;
      DrawerLayout xDrawerLayout;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_alt);
  
          toolbar = (Toolbar) findViewById(R.id.app_bar);
          setSupportActionBar(toolbar);
          getSupportActionBar().setDisplayShowHomeEnabled(true);
  
          xDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
          xDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.primary_dark));
  
          NavDrawerFragment mfragment = (NavDrawerFragment) getFragmentManager().findFragmentById(R.id.nav_drawer_fragment);
          mfragment.SetUp(xDrawerLayout, toolbar, R.id.nav_drawer_fragment);
      }
  ...
  </code></pre>
  
  <p><strong>activity_alt.xml:</strong></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:fitsSystemWindows="true"
      android:orientation="vertical"&gt;
  
      &lt;include
          android:id="@+id/app_bar"
          layout="@layout/app_bar" /&gt;
  
  
      &lt;android.support.v4.widget.DrawerLayout
          android:id="@+id/drawer_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/hello_world" /&gt;
  
          &lt;/RelativeLayout&gt;
  
          &lt;fragment
              android:id="@+id/nav_drawer_fragment"
              android:name="com.rt.droid.mattest.NavDrawerFragment"
              android:layout_width="@dimen/nav_drawer_width"
              android:layout_height="match_parent"
              android:layout_gravity="start"
              tools:layout="@layout/fragment_nav_drawer" /&gt;
  
  
      &lt;/android.support.v4.widget.DrawerLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>NavDrawerFragment.java:</strong></p>
  
  <pre><code>public class NavDrawerFragment extends Fragment {
  
      private ActionBarDrawerToggle mDrawerToggle;
      private DrawerLayout mDrawerLayout;
      public DrawerLearner yDrawerLearner;
  
      public NavDrawerFragment() {
          // Required empty public constructor
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          // Inflate the layout for this fragment
          View fView = inflater.inflate(R.layout.fragment_nav_drawer, container, false);
          //fView.setFitsSystemWindows(true);
          fView.setBackgroundColor(getResources().getColor(R.color.accent));
          return fView;
      }
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      }
  
      public void SetUp(DrawerLayout drawerLayout, Toolbar toolbar, int frag_id) {
          this.mDrawerLayout = drawerLayout;
          View drawerFrag = getActivity().findViewById(frag_id);
          mDrawerToggle = new ActionBarDrawerToggle(getActivity(), mDrawerLayout, toolbar, R.string.drawer_open, R.string.drawer_close) {
              @Override
              public void onDrawerOpened(View drawerView) {
                  super.onDrawerOpened(drawerView);
                  getActivity().invalidateOptionsMenu();
              }
  
              @Override
              public void onDrawerClosed(View drawerView) {
                  super.onDrawerClosed(drawerView);
                  getActivity().invalidateOptionsMenu();
              }
          };
  
          yDrawerLearner = new DrawerLearner(mDrawerLayout, drawerFrag, getActivity());
          yDrawerLearner.execute();
  
          this.mDrawerLayout.setDrawerListener(mDrawerToggle);
          mDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.primary_dark));
  
          mDrawerLayout.post(new Runnable() {
              @Override
              public void run() {
                  mDrawerToggle.syncState();
              }
          });
  
      }
  }
  </code></pre>
  
  <p>fragment_nav_drawer.xml:</p>
  
  <pre><code>&lt;FrameLayout 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"
      tools:context="com.rt.droid.mattest.NavDrawerFragment"&gt;
  
      &lt;!-- TODO: Update blank fragment layout --&gt;
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:text="@string/hello_blank_fragment" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>app_bar.xml:</strong></p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/primary"
      app:popupTheme="@style/AppTheme.PopupMenu"
      android:theme="@style/AppTheme.Toolbar"&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p><strong>styles.xml:</strong></p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="AppTheme.Base"&gt;
          &lt;!-- Customize your theme here. --&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.Base" 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;/style&gt;
  
      &lt;style name="AppTheme.Toolbar" parent="ThemeOverlay.AppCompat.Dark"&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/primary_text&lt;/item&gt;
          &lt;item name="android:textColorSecondary"&gt;@color/accent&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.PopupMenu" parent="ThemeOverlay.AppCompat.Dark"&gt;
          &lt;item name="android:background"&gt;@color/accent&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>styles.xml(v21):</strong></p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="AppTheme" parent="AppTheme.Base"&gt;
          &lt;!-- Customize your theme here. --&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:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
          &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
          &lt;item name="android:windowTranslucentStatus"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>Colors.xml(screenshot showing color samples):</strong></p>
  
  <p><img src="https://i.stack.imgur.com/HNUiD.png" alt="colors.xml"></p>
  
  <p>Note: I do not want to compromise on the styles etc that would render my other navigation drawer not working. In other words, i prefer a solution wherein both types of navigation bar works as expected in the same app.</p>
  
  <p>Please let me know if you need any info and i shall edit if required.
  Edit: added app_bar.xml &amp; colors.xml for clarity.</p>