title: How to hide action Overflow menu (Not menu item) from activity and keep in Fragment? [Not solved]
body: <p>I have a requirement that action Overflow menu icon should show in fragment, but not activity.</p>
  <p>Code:</p>
  <pre><code> @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
              case R.id.filter:
                  openFilterDialog();
                  return true;
              default:
                  break;
          }
  
          return false;
      }
  
  
  @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.menu_mail_list, menu);
          return true;
      }
  </code></pre>
  <p>menu xml:</p>
  <pre><code>&lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      tools:context=&quot;com.dwisehealthcare.pmstablet.consult.activity.ConsultActivity&quot;&gt;
  
      &lt;item
          android:id=&quot;@+id/filter&quot;
          android:title=&quot;Filter&quot;
          android:icon=&quot;@drawable/ic_baseline_filter_list_24&quot;
          app:showAsAction=&quot;always&quot; /&gt;
  
  &lt;/menu&gt;
  </code></pre>
  <p>I searched, but everyone is talking about menu item, not action icon.</p>