| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
Sets the submenu header's icon to the icon given in iconRes resource id.
| Parameters | |
|---|---|
iconRes |
int:
The resource identifier used for the icon. |
| Returns | |
|---|---|
SubMenu |
This SubMenu so additional setters can be called. |
Sets the submenu header's title to the title given in title.
| Parameters | |
|---|---|
title |
CharSequence:
The character sequence used for the title. |
| Returns | |
|---|---|
SubMenu |
This SubMenu so additional setters can be called. |
Sets the submenu header's title to the title given in titleRes resource identifier.
| Parameters | |
|---|---|
titleRes |
int:
The string resource identifier used for the title. |
| Returns | |
|---|---|
SubMenu |
This SubMenu so additional setters can be called. |
Change the icon associated with this submenu's item in its parent menu.
| Parameters | |
|---|---|
icon |
Drawable:
The new icon (as a Drawable) to be displayed. |
| Returns | |
|---|---|
SubMenu |
This SubMenu so additional setters can be called. |
See also:
Change the icon associated with this submenu's item in its parent menu.
| Parameters | |
|---|---|
iconRes |
int:
The new icon (as a resource ID) to be displayed. |
| Returns | |
|---|---|
SubMenu |
This SubMenu so additional setters can be called. |
See also: