Once we have created a project and created an activity in MenuOptionsDemoProject, we are ready to add a menu to it. 2. SearchView in Toolbar was the first example of SearchView. The Android framework does a lot to help us create and interact with menu action items, those little icons on the right side of the toolbar. Now create an XML file under res/layout folder and name it as menu.xml. To create a menu resource, use the