Java android.view SubMenu fields, constructors, methods, implement or subclass

Example usage for Java android.view SubMenu fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view SubMenu.

The text is from its open source code.

Implementation

android.view.SubMenu has the following implementations.
Click this link to see all its implementation.

Method

MenuItemadd(int groupId, int itemId, int order, CharSequence title)
Add a new item to the menu.
MenuItemadd(CharSequence title)
Add a new item to the menu.
SubMenuaddSubMenu(final int groupId, final int itemId, int order, final CharSequence title)
Add a new sub-menu to the menu.
voidclear()
Remove all existing items from the menu, leaving it empty as if it had just been created.
voidclearHeader()
Clears the header of the submenu.
MenuItemfindItem(int id)
Return the menu item with a particular identifier.
MenuItemgetItem(int index)
Gets the menu item at the given index.
MenuItemgetItem()
Gets the MenuItem that represents this submenu in the parent menu.
voidremoveGroup(int groupId)
Remove all items in the given group.
voidremoveItem(int id)
Remove the item with the given identifier.
voidsetGroupCheckable(int group, boolean checkable, boolean exclusive)
Control whether a particular group of items can show a check mark.
voidsetGroupEnabled(int group, boolean enabled)
Enable or disable all menu items that are in the given group.
SubMenusetHeaderIcon(@DrawableRes int iconRes)
Sets the submenu header's icon to the icon given in iconRes resource id.
SubMenusetHeaderIcon(Drawable icon)
Sets the submenu header's icon to the icon given in icon Drawable .
SubMenusetHeaderTitle(@StringRes int titleRes)
Sets the submenu header's title to the title given in titleRes resource identifier.
SubMenusetHeaderTitle(CharSequence title)
Sets the submenu header's title to the title given in title.
SubMenusetIcon(@DrawableRes int iconRes)
Change the icon associated with this submenu's item in its parent menu.
SubMenusetIcon(Drawable icon)
Change the icon associated with this submenu's item in its parent menu.
intsize()
Get the number of items in the menu.