title: Change toolbar menus in fragment
body: <p>I have <code>MainActivity</code> and it's have fragment. I added toolbar from <code>MainActivity</code>;</p>
  
  <p><strong>MainActivity</strong></p>
  
  <pre><code>private Toolbar mToolbar;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      mToolbar = (Toolbar)findViewById(R.id.toolbar);
      setSupportActionBar(mToolbar);
      getSupportActionBar().setDisplayShowHomeEnabled(true);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  </code></pre>
  
  <p>When I was open any fragment from MainActivity then that fragment use own menu file</p>
  
  <p><strong>In fragment</strong></p>
  
  <pre><code>@Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      inflater.inflate(R.menu.custom_menu, menu);
      super.onCreateOptionsMenu(menu, inflater);
  }
  </code></pre>
  
  <p>As you can see above I inflated custom menu in <code>onCreateOptionsMenu</code>. But It doesn't work.</p>