title: Android.Views.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class android.support.v7.widget.DrawerLayout
body: <p>I am new to android apps development and I am trying to add navigation to my app, but I am getting this error on <code>SetContentView(Resource.Layout.activity_working);</code> in <code>WorkingActivity.cs</code>:</p>
  
  <pre><code>Android.Views.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class android.support.v7.widget.DrawerLayout
  </code></pre>
  
  <p>These are my files:</p>
  
  <p><strong>activity_working.axml:</strong></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.v7.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;LinearLayout    
              android:layout_width="match_parent"    
              android:layout_height="match_parent"    
              android:orientation="vertical"&gt;    
            &lt;include layout="@layout/toolbar" /&gt;    
    &lt;/LinearLayout&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.v7.widget.DrawerLayout&gt;   
  </code></pre>
  
  <p> </p>
  
  <p><strong>WorkingActivity.cs</strong></p>
  
  <pre><code>using Android.App;
  using Android.Content;
  using Android.OS;
  using Android.Runtime;
  using Android.Support.Design.Widget;
  using Android.Support.V4.Widget;
  using Android.Support.V7.App;
  using Android.Support.V7.Widget;
  using Android.Views;
  using Android.Widget;
  
  namespace App2
  {
      [Activity(Label = "WorkingActivity", Theme = "@style/AppTheme")]
      public class WorkingActivity : AppCompatActivity
      {
          DrawerLayout drawerLayout;
          NavigationView navigationView;
  
          protected override void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
  
              SetContentView(Resource.Layout.activity_working);
          }
  
      }
  }
  </code></pre>
  
  <p><strong>toolbar.axml:</strong></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/ThemeOverlay.AppCompat.Dark.ActionBar"&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;    
  &lt;/android.support.design.widget.CoordinatorLayout&gt;  
  </code></pre>
  
  <p><strong>nav_header.axml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    
     xmlns:app="http://schemas.android.com/apk/res-auto"    
     android:layout_width="match_parent"    
     android:layout_height="210dp"    
     android:background="#0099ff"    
     android:padding="16dp"    
     android:orientation="vertical"    
     android:gravity="bottom"&gt;    
     &lt;TextView    
        android:text="User Name"    
        android:layout_width="match_parent"    
        android:layout_height="wrap_content"    
        android:id="@+id/navheader_username"    
        android:textAppearance="@style/TextAppearance.AppCompat.Body1" /&gt;    
  &lt;/LinearLayout&gt;  
  </code></pre>
  
  <p><strong>menu.xml:</strong></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;item android:id="@+id/nav_main"
      android:title="Home"&gt;&lt;/item&gt;
  
     &lt;item android:id="@+id/nav_message"
      android:title="Message"&gt;&lt;/item&gt;
  
     &lt;item android:id="@+id/nav_about"
      android:title="About"&gt;&lt;/item&gt;
  
     &lt;item android:id="@+id/nav_feedback"
      android:title="Feedback"&gt;&lt;/item&gt;
  
  &lt;/menu&gt; 
  </code></pre>
  
  <p><strong>styles.xml:</strong></p>
  
  <pre><code>&lt;resources&gt;
  
  &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>colors.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="colorPrimary"&gt;#2c3e50&lt;/color&gt;
      &lt;color name="colorPrimaryDark"&gt;#1B3147&lt;/color&gt;
      &lt;color name="colorAccent"&gt;#3498db&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>What can be problem?</p>
  
  <p>Before I added files for navigation everything was fine.</p>