title: Layout Image at the top of NavigationView inside DrawerLayout
body: <p>I have a NavigationView inside a DrawerLayout, and the NavigationView provides the layout for the drawer that comes from the left side of the screen. I am using this for backward compatibility, and I need an image at the top as you would normally have in a navigation drawer. I have added an imageview to the NavigatonView, but the imageview is in the middle of my drawer. I need it at the top above the menu items. heres my sample 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:aapp="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/image_background"&gt;
  
      &lt;!-- This LinearLayout represents the contents of the screen  --&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;!-- The ActionBar displayed at the top --&gt;
          &lt;include
              layout="@layout/toolbar"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" /&gt;
  
          &lt;!-- The main content view where fragments are loaded --&gt;
          &lt;FrameLayout
              android:id="@+id/flContent"
              android:layout_width="match_parent"
              android:layout_height="match_parent" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- The navigation drawer that comes from the left --&gt;
      &lt;!-- Note that `android:layout_gravity` needs to be set to 'start' --&gt;
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/nvView"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:background="?attr/colorPrimaryDark"
          app:menu="@menu/menu_main"
          app:itemTextColor="@color/text_field_font_color"&gt;
  
          &lt;ImageView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:id="@+id/nav_header"
                  android:gravity="top"
                  android:src="@drawable/nav_header"/&gt;
  
  
      &lt;/android.support.design.widget.NavigationView&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>Ive tried changing the android:layout_gravity, and the android:gravity of the imageview with no luck. How can I get this imageview to layout above the menu items in the navigationView?</p>