March 2016
Intermediate to advanced
428 pages
9h 2m
English
Before we actually create and display a menu, let's look at a menu to see the end result. The following is a screenshot showing the menu section of Chrome:

The most obvious feature to note is that the menu will look different based on the screen size. By default, menu items will be added to the Overflow menu—that's the menu you see when you press the three dots at the far right edge.
Menus are typically created in resource files using XML (like many other Android resources) but they are stored in the res/menu directory though they can also be created in code. To create a menu resource, use the <menu> element as shown:
<menu ...
Read now
Unlock full access