To define your own menu, create an XML file inside your project's res/menu/ directory and build the menu with the following elements:
<menu> : Defines a Menu, which holds all the menu items.
<item> : Creates a MenuItem, which represents a single item in a menu. We can also create a n...