title: Android.Views.InflateException: Binary XML file line #1: Error inflating class BottomNavigationView
body: <p>I trying to add Toolbar, TabBarLayout and BottomNavigationView to my activity.
   Without adding the toolbar, everything works fine, but after adding toolbar, the app crashes giving error:</p>
  
  <blockquote>
    <p>Android.Views.InflateException: Binary XML file line #1: Binary XML
    file line #1: Error inflating class
    android.support.design.widget.BottomNavigationView</p>
  </blockquote>
  
  <p>I'm using LinearLayout. I tried by changing layout_weight and themes and all other methods I can find on stackoverflow or by searching Google, but can't find the solution. I'm sharing my layout, style and activity code.</p>
  
  <p>activity_main.axml</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"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:weightSum="100"&gt;
  
      &lt;include
          android:id="@+id/toolbar"
          layout="@layout/ToolbarLayout" /&gt;
  
      &lt;android.support.design.widget.TabLayout
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:id="@+id/tablayout"
          android:background="@color/white"
          android:minHeight="?attr/actionBarSize"
          app:tabTextColor="@color/black"
          app:tabSelectedTextColor="@color/yellow"
          app:tabIndicatorColor="@color/yellow"
          android:layout_weight="10"/&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:id="@+id/pager"
          android:layout_weight="82"&gt;
      &lt;/android.support.v4.view.ViewPager&gt;
  
      &lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/navigation"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:background="?android:attr/windowBackground"
          app:menu="@menu/navigation"
          android:layout_weight="8"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>MainActivity.cs</p>
  
  <pre><code>using Android.App; using Android.OS; using Android.Runtime; using Android.Support.Design.Widget; using Android.Support.V4.View; using Android.Support.V7.App; using Android.Support.V7.Widget; using Android.Views;
  
  namespace utfive {
      [Activity(Label = "@string/app_name", Theme = "@style/AppTheme")]
      public class MainActivity : AppCompatActivity, BottomNavigationView.IOnNavigationItemSelectedListener
      {
          protected override void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
              SetContentView(Resource.Layout.activity_main);
              SetSupportActionBar(FindViewById&lt;Toolbar&gt;(Resource.Id.toolbar));
              BottomNavigationView navigation = FindViewById&lt;BottomNavigationView&gt;(Resource.Id.navigation);
              navigation.SetOnNavigationItemSelectedListener(this);
  
              LoadPager();
          }
  
          private void LoadPager()
          {
              ViewPager viewPager = (ViewPager)FindViewById(Resource.Id.pager);
              PageAdapter myPagerAdapter = new PageAdapter(SupportFragmentManager);
              viewPager.Adapter = myPagerAdapter;
              TabLayout tabLayout = (TabLayout)FindViewById(Resource.Id.tablayout);
              tabLayout.SetupWithViewPager(viewPager);
          }
  
          public bool OnNavigationItemSelected(IMenuItem item)
          {
              switch (item.ItemId)
              {
                  case Resource.Id.navigation_home:
                      //textMessage.SetText(Resource.String.title_home);
                      return true;
                  case Resource.Id.navigation_dashboard:
                      //textMessage.SetText(Resource.String.title_dashboard);
                      return true;
                  case Resource.Id.navigation_notifications:
                      //textMessage.SetText(Resource.String.title_notifications);
                      return true;
              }
              return false;
          }
      } }
  </code></pre>
  
  <p>style.xml</p>
  
  <pre><code>&lt;resources&gt;
  
    &lt;!-- Base application theme. --&gt;
    &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="colorPrimary"&gt;@color/yellow&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/black&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/white&lt;/item&gt;
    &lt;/style&gt;
  
    &lt;style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/yellow&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/black&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/white&lt;/item&gt;
    &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>ToolbarLayout.axml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:minHeight="?android:attr/actionBarSize"
      android:background="@color/white"
      android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
      app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/&gt;
  </code></pre>
  
  <p>Can anyone please help me in this?</p>