Create OptionsMenu using an XML menu
The options menu is the primary collection of menu items for an activity. The menu items are displayed on the ActionBar. Step 1: In res/drawable/ directory add icons to be used in OptionsMenu. Take for example ic_add_white, ic_settings_white_24dp, and ic_info_outline_white. Step 2: Firstly, create the menu in xml. Open res/menu/ directory and create a new file menu_main.xml. … Read more