Sub menus do not support item icons, or nested sub menus.
For information about creating menus, read the Menus developer guide.
Clears the header of the submenu.
Gets the {@link MenuItem} that represents this submenu in the parent menu. Use this for setting additional item attributes.returnThe {@link MenuItem} that launches the submenu when invoked.
Sets the submenu header's icon to the icon given in iconRes resource id.paramiconRes The resource identifier used for the icon.returnThis SubMenu so additional setters can be called.
Sets the submenu header's icon to the icon given in icon {@link Drawable}.paramicon The {@link Drawable} used for the icon.returnThis SubMenu so additional setters can be called.
Sets the submenu header's title to the title given in titleRes resource identifier.paramtitleRes The string resource identifier used for the title.returnThis SubMenu so additional setters can be called.
Sets the submenu header's title to the title given in title.paramtitle The character sequence used for the title.returnThis SubMenu so additional setters can be called.
Sets the header of the submenu to the {@link View} given in view. This replaces the header title and icon (and those replace this).paramview The {@link View} used for the header.returnThis SubMenu so additional setters can be called.
Change the icon associated with this submenu's item in its parent menu.seeMenuItem#setIcon(int)paramiconRes The new icon (as a resource ID) to be displayed.returnThis SubMenu so additional setters can be called.
Change the icon associated with this submenu's item in its parent menu.seeMenuItem#setIcon(Drawable)paramicon The new icon (as a Drawable) to be displayed.returnThis SubMenu so additional setters can be called.