title: xamarin navigation drawer with fragments
body: <p>I'm doing something wrong here. I want to use the navigation drawer and then for the content create some fragments for display the different 'pages'. I have the navigation view, hamburger menu, etc working just fine. But I can't seem to get my fragments to show up. So I tried replacing my fragments with just a text view so I can tell if its showing up but I can't even get that to show up now. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/drawer_layout"
      android:layout_height="match_parent"
      android:layout_width="fill_parent"
      android:fitsSystemWindows="true"&gt;
          &lt;RelativeLayout
                  android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
          &lt;include layout="@layout/toolbar" android:id="@+id/includething"/&gt;
                  &lt;TextView
                  android:id="@+id/label"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:text="Sample Text "/&gt;
          &lt;!--&lt;FrameLayout
              android:id="@+id/content_frame"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
                      android:layout_below="@id/includething"/&gt;--&gt;
      &lt;/RelativeLayout &gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/nav_view"
          android:layout_height="match_parent"
          android:layout_width="300dp"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          app:headerLayout="@layout/nav_header" /&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>edit: Adding the toolbar layout I'm including</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/main_content"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  &lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:theme="@style/MyTheme"&gt;
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:elevation="4dp"
          android:background="?attr/colorPrimary" /&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>At one point I got the fragment to show up but it was in the navigation drawer itself. Now I can't even get that to show up. What am I doing wrong? I commented out the fragment for now just hoping to get the textview to show up below the toolbar. If i can get that working i am confident i can make the fragment stuff work.</p>
  
  <p>edit: After trying cricket's mode I was able to get this closer, but it looks like now the toolbar is on top of the main content area. Is there a way to move that down so that the content starts at the bottom of the toolbar? I have turned the background of my fragment yellow so its easier to see in the image below. What you can't see is there is actually text that appears in the fragment but its blocked by the toolbar.</p>
  
  <p><a href="https://i.stack.imgur.com/MfxfJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MfxfJ.png" alt="enter image description here"></a></p>