title: Navigation Drawer Header is not hiding
body: <p>I tried to create one simple app with Drawer Menu. I created a project with Android Studio and select Navigation Drawer Layout. I'm trying to hide navigation drawer header and put it on toolbar... I found the way to put on toolbar but I can't find hide RED part of header in picture. Can you help me please.</p>
  
  <p><a href="https://i.stack.imgur.com/TCaY9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TCaY9.jpg" alt="navigation drawer header"></a></p>
  
  <p>Here is my layout page xml codes</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"
  tools:openDrawer="start"&gt;
  
  &lt;include
      layout="@layout/app_bar_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;android.support.design.widget.NavigationView
      android:id="@+id/nav_view"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_gravity="start"
      android:fitsSystemWindows="true"
      android:layout_marginTop="?attr/actionBarSize" //With this code i put menu under toolbar
      app:menu="@menu/activity_main_drawer" /&gt;
  
   &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>Here is my MainActivity.java</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity
      implements NavigationView.OnNavigationItemSelectedListener {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
      ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
              this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
      drawer.setDrawerListener(toggle);
      toggle.syncState();
  
      NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
      navigationView.setNavigationItemSelectedListener(this);
  
  
  }
  
  @Override
  public void onBackPressed() {
      DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
      if (drawer.isDrawerOpen(GravityCompat.START)) {
          drawer.closeDrawer(GravityCompat.START);
      } else {
          super.onBackPressed();
      }
  }
  
  
  
  @SuppressWarnings("StatementWithEmptyBody")
  @Override
  public boolean onNavigationItemSelected(MenuItem item) {
      // Handle navigation view item clicks here.
      int id = item.getItemId();
      FragmentManager fragmentManager = getFragmentManager();
  
      if (id == R.id.nav_first_layout) {
          fragmentManager.beginTransaction().replace(R.id.content_frame,new FirstFragment()).commit();
      } else if (id == R.id.nav_second_layout) {
          fragmentManager.beginTransaction().replace(R.id.content_frame,new SecondFragment()).commit();
      } else if (id == R.id.nav_third_layout) {
          fragmentManager.beginTransaction().replace(R.id.content_frame,new ThirdFragment()).commit();
      }   else if (id == R.id.nav_home) {
          Intent intent = new Intent(getApplicationContext(), MainActivity.class);
          startActivity(intent);
      }
  
      DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
      drawer.closeDrawer(GravityCompat.START);
      return true;
  }
  }
  </code></pre>
  
  <p>How can I hide that red part??</p>