title: How to make Drawer header Fixed in Android
body: <p>I am working on a android app. I want to create a drawer with fixed header(non scroll-able).</p>
  
  <p>Below is my <code>activity_main.xml</code> code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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"
          app:headerLayout="@layout/nav_header_main"
          app:menu="@menu/activity_main_drawer" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>and below is code of <code>nav_header_main.xml</code> layout file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="@dimen/nav_header_height"
      android:background="@drawable/drawer_bg1"
      android:gravity="bottom"
      android:orientation="vertical"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:theme="@style/ThemeOverlay.AppCompat.Dark"
      style="@style/Base.Theme.AppCompat.Dialog.FixedSize"&gt;
  
      &lt;ImageView
          android:id="@+id/imageView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingTop="@dimen/nav_header_vertical_spacing"
          android:src="@android:drawable/sym_def_app_icon" /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingTop="@dimen/nav_header_vertical_spacing"
          android:text="@string/app_name"
          style="@style/TextShadow"
          android:textAppearance="@style/TextAppearance.AppCompat.Body1" /&gt;
  
      &lt;TextView
          android:id="@+id/textView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="tandon.ab@gmail.com" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>OUTPUT :</strong></p>
  
  <p><a href="https://i.stack.imgur.com/kfH4e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kfH4e.png" alt="enter image description here"></a>
  I want to make fixed the header (containing image at background and app Title) but items from "Load Images" to below should be scroll able.</p>
  
  <p>How can I do this?</p>
  
  <p>Thank You!</p>