title: Checking if a button has been clicked
body: <p>How to load menu depend on button was clicked? Any idea, solution?</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(final Menu menu) {
  
      menu.clear();
      if(button.**isclicked**) {
          getMenuInflater().inflate(R.menu.menu_main, menu);
      } else {
          getMenuInflater().inflate(R.menu.test, menu);
      }
  
      return true;
  }
  </code></pre>