android.view.SubMenu |
Subclass of Menu
for sub menus.
Sub menus do not support item icons, or nested sub menus.
For information about creating menus, read the Menus developer guide.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.view.Menu
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clears the header of the submenu.
| |||||||||||
Gets the
MenuItem that represents this submenu in the parent
menu. | |||||||||||
Sets the submenu header's icon to the icon given in icon
Drawable . | |||||||||||
Sets the submenu header's icon to the icon given in iconRes
resource id.
| |||||||||||
Sets the submenu header's title to the title given in title.
| |||||||||||
Sets the submenu header's title to the title given in titleRes
resource identifier.
| |||||||||||
Sets the header of the submenu to the
View given in
view. | |||||||||||
Change the icon associated with this submenu's item in its parent menu.
| |||||||||||
Change the icon associated with this submenu's item in its parent menu.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.view.Menu
|
Sets the submenu header's icon to the icon given in iconRes resource id.
iconRes | The resource identifier used for the icon. |
---|
Sets the submenu header's title to the title given in title.
title | The character sequence used for the title. |
---|
Sets the submenu header's title to the title given in titleRes resource identifier.
titleRes | The string resource identifier used for the title. |
---|
Change the icon associated with this submenu's item in its parent menu.
icon | The new icon (as a Drawable) to be displayed. |
---|
Change the icon associated with this submenu's item in its parent menu.
iconRes | The new icon (as a resource ID) to be displayed. |
---|