title: Unable to inflate the Search button in toolbar
body: <p>I am having Navigation view and fragment container where multiple fragment are displayed my navigation view code is as below.I am unable to show search button in toolbar even though i'am trying to inflate the search button as below</p>
  
  <pre><code>@Override
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
          inflater.inflate(R.menu.menu_main, menu);
  
          MenuItem item = menu.findItem(R.id.action_search);
  
          super.onCreateOptionsMenu(menu, inflater);
      }
  
  
  
  &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="match_parent"
      android:fitsSystemWindows="true"
      android:orientation="vertical"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/colorPrimary"
          android:id="@+id/toolbar"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
          app:title="e-Vyapar" /&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:layout_height="match_parent"
          android:layout_width="match_parent"
          android:id="@+id/drawerLayout"
          &gt;
  
  
  
          &lt;FrameLayout
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:id="@+id/containerView"&gt;
  
  
          &lt;/FrameLayout&gt;
  &lt;android.support.design.widget.NavigationView
              xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:app="http://schemas.android.com/apk/res-auto"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:layout_gravity="start"
              android:id="@+id/shitstuff"
              app:itemTextColor="@color/black"
              app:menu="@menu/drawermenu"
              android:layout_marginTop="-24dp"
              android:paddingTop="10dp"
              /&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  &lt;/LinearLayout&gt;
  
  
  
  
   &lt;menu 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"
      tools:context="com.cdac.ayush.MainActivity"&gt;
    &lt;!--  &lt;item
          android:id="@+id/action_settings"
          android:orderInCategory="100"
          android:title="@string/action_settings"
          app:showAsAction="never" /&gt;--&gt;
  
  
      &lt;item
          android:id="@+id/action_search"
          android:icon="@android:drawable/ic_menu_search"
          android:title="@string/action_search"
          app:actionViewClass="android.support.v7.widget.SearchView"
          app:showAsAction="always|collapseActionView" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>Any help would be appreciated Thanks.</p>