01/30/2019, 8:30 PM
@bjonnh A MenuItem is an item that when invoked will execute some action. No need to store a reference to it. You add it where you want it in the UI and the action you associate with it will be executed when the item is invoked. Notice that I never create references to Fragments or MenuItems or any UI element in general in my example