Today we learnt about android menus.By default, every Activity supports an options menu of actions or options. You can add items to this menu and handle clicks on your additions. The easiest way of adding menu items is inflating an XML file into the menu via MenuInflator.
Different menu types support different features:
- Context menus: Do not support item shortcuts and item icons.
- Options menus: The icon menus do not support item check marks and only show the item's condensed title. The expanded menus (only available if six or more menu items are visible, reached via the 'More' item in the icon menu) do not show item icons, and item check marks are discouraged.
- Sub menus: Do not support item icons, or nested sub menus.
Comments
Post a Comment