title: Action bar items are showing in NavigationView and unable to hide 3 dots from action bar
body: <p>I have NavigationView and search filter on Action bar in same page(Home page), After adding search item on action bar its showing in both action bar and navigation view(menu). And I am unable hide the 3 dots on the right side of the action bar which I don't want. Find the below code and screen shot</p>
  
  <p>activity_main_drawer.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;group android:id="@+id/grp1"&gt;
          &lt;item
              android:id="@+id/nav_camera"
              android:icon="@drawable/theme"
              android:title="@string/nav_theme" /&gt;
      &lt;/group&gt;
  
      &lt;group android:id="@+id/grp2"&gt;
          &lt;item
              android:id="@+id/nav_gallery"
              android:icon="@drawable/fingerprint"
              android:title="@string/nav_touchid" /&gt;
      &lt;/group&gt;
  
      &lt;group android:id="@+id/grp3"&gt;
          &lt;item
              android:id="@+id/nav_contact"
              android:icon="@drawable/contact_us"
              android:title="@string/nav_contacts" /&gt;
      &lt;/group&gt;
      &lt;group android:id="@+id/grp4"&gt;
          &lt;item
              android:id="@+id/nav_manage"
              android:icon="@drawable/notification"
              android:title="@string/nav_notifications" /&gt;
      &lt;/group&gt;
      &lt;group android:id="@+id/grp5"&gt;
          &lt;item
              android:id="@+id/nav_user_guide"
              android:icon="@drawable/user_guide"
              android:title="@string/nav_userguide" /&gt;
      &lt;/group&gt;
      &lt;group android:id="@+id/grp6"&gt;
          &lt;item
              android:id="@+id/nav_logout"
              android:icon="@drawable/logout"
              android:title="Log Out" /&gt;
  
      &lt;/group&gt;
  
      &lt;item
          android:id="@+id/action_search"
          android:icon="@drawable/searchicon"
          android:title="Search"
          app:actionViewClass="android.support.v7.widget.SearchView"
          app:showAsAction="always" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>MainActivity.java</p>
  
  <pre><code>@Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.activity_main_drawer, menu);
          // Retrieve the SearchView and plug it into SearchManager
          final SearchView searchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.action_search));
          SearchManager searchManager = (SearchManager) getSystemService(SEARCH_SERVICE);
          searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/OiK23.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OiK23.png" alt="enter image description here"></a></p>