| Start | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Options menu with dividers In Android there is a default options menu, which can take a number of options. If a larger number of options needs to be displayed, then it makes sense to group those options in order to maintain clarity. Options can be grouped by putting dividers (i.e. horizontal lines) between them. In order to allow for dividers, the following theme can be used: By changing the theme, dividers can be added to a menu. |
||||||||||
Apply custom font to Menu and then in the Activity: |
||||||||||
| Creating a Menu in an Activity
**Step 1:**Create your own xml file as the following:In **Step 2:**To specify the options menu, override In this method, you can inflate your menu resource (defined in your XML file i.e., When the user selects an item from the options menu, the system calls your activity's overridden
Wrapping up!Your **Screenshot of how your own Menu looks:**Syntax
Parameters
RemarksTo know more about Menus, read this (opens new window). Hope it helps! |
Read Article
https://develop.horje.com/learn/1434/reference