title: Android Support Library - NavigationView
body: <p>I'm building an Android Application in Xamarin and I'm trying to use the NavigationView control that comes with the Android Support Library.</p>
  
  <p>Therefore, I've adapted my main layout (main.axml) like the following:</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"
          android:id="@+id/DrawerLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
      &lt;!-- Renders the toolbar on the button. --&gt;
          &lt;include
              layout="@layout/Toolbar" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;!-- Android Navigation Drawer. --&gt;
          &lt;android.support.design.widget.NavigationView
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_gravity="start"
              android:id="@+id/navigationView"
              app:headerLayout="@layout/flyout_navigation_drawer"
              app:menu="@menu/flyout_navigation_drawer"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>As you see here, I have an headerLayout that points to <code>@layout/flyout_navigation_drawer</code> and a menu that points to <code>@menu/flyout_navigation_drawer</code>.</p>
  
  <p>Both files does exists and the code can be found below:</p>
  
  <p><code>@layout/flyout_navigation_header</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="150dp"
      android:orientation="vertical"&gt;
      &lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/nav_header_bg"
          android:scaleType="centerCrop" /&gt;
      &lt;TextView
          style="@style/TextAppearance.AppCompat.Subhead"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom"
          android:layout_margin="16dp"
          android:text="Your Name Here"
          android:textColor="@android:color/white" /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><code>@menu/flyout_navigation_drawer</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;group android:checkableBehavior="single"&gt;
          &lt;item
              android:id="@+id/navigation_item_1"
              android:checked="true"
              android:title="Item One" /&gt;
          &lt;item
              android:id="@+id/navigation_item_2"
              android:title="Item Two" /&gt;
      &lt;/group&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>However, wheb I built the app in Xamarin I do receive the following error:</p>
  
  <pre><code>Error APT0000: No resource found that matches the given name (at 'headerLayout' with value '@layout/flyout_navigation_drawer'). (APT0000)
  </code></pre>
  
  <p>I've included a screenshot as a reference on how the project looks:</p>
  
  <p><a href="https://i.stack.imgur.com/YgiOd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YgiOd.png" alt="enter image description here"></a></p>