title: How to hide item from menu and show another item :Android
body: <p>I want to show save button when edit button clicked and hide edit button </p>
  
  <p>And</p>
  
  <p>show edit button when save button is clicked and hide save button.</p>
  
  <p>My menu file is as below: </p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item
      android:id="@+id/edit_button"
      android:icon="@drawable/edit_button"
      android:orderInCategory="100"
      android:showAsAction="always"
      android:title="@string/edit"/&gt; 
  
      &lt;item
      android:id="@+id/save_button"
      android:icon="@drawable/save_button"
      android:orderInCategory="100"
      android:showAsAction="always"
      android:title="@string/save"/&gt; 
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>Screenshot for reference :</p>
  
  <p><img src="https://i.stack.imgur.com/7mXwF.png" alt="enter image description here"></p>