I want to show save button when edit button clicked and hide edit button
And
show edit button when save button is clicked and hide save button.
My menu file is as below:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/edit_button"
android:icon="@drawable/edit_button"
android:orderInCategory="100"
android:showAsAction="always"
android:title="@string/edit"/>
<item
android:id="@+id/save_button"
android:icon="@drawable/save_button"
android:orderInCategory="100"
android:showAsAction="always"
android:title="@string/save"/>
</menu>
Screenshot for reference :