title: How to change the toolbars' (android.support.v7.widget.Toolbar) menu onclicklistener
body: <p>I have a toolbar (android.support.v7.widget.Toolbar) on an activity which displays a navigation and a menu icon (three dots vertically). When I switch to a certain fragment, I am displaying a "check icon" instead of the menu icon on the right side by calling toolbar.setOverflowIcon. </p>
  
  <p>Now I want to change the onclick function of the menu icon so it displays another fragment instead of opening the dropdown menu.</p>
  
  <p>I tried to find a function which would be called something like "setOnMenuClickListener" to handle the click on the menu icon, but I only found "onMenu<strong>Item</strong>ClickListener" which is not what I want.</p>
  
  <p>This is my toolbar and the navigation drawer:</p>
  
  <pre><code>toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
          DrawerLayout drawer = this.findViewById(R.id.drawer_layout);
          ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
          drawer.addDrawerListener(toggle);
          toggle.syncState();
  </code></pre>
  
  <p>This is the function to change the toolbar icon and its onClickListener:</p>
  
  <pre><code>toolbar.setOverflowIcon(context.getResources().getDrawable(R.drawable.ic_more_vert_white));
  </code></pre>
  
  <p>pseudo code(because there is no such function): </p>
  
  <pre><code>toolbar.setOnMenuClickListener(new Listener {
  display the fragment
  }
  </code></pre>
  
  <p>I appreciate your help, if you have further questions to my problem do not hesitate to ask.</p>