|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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.
| Field Summary |
|---|
| Fields inherited from interface com.actionbarsherlock.view.Menu |
|---|
CATEGORY_ALTERNATIVE, CATEGORY_CONTAINER, CATEGORY_MASK, CATEGORY_SECONDARY, CATEGORY_SHIFT, CATEGORY_SYSTEM, FIRST, FLAG_ALWAYS_PERFORM_CLOSE, FLAG_APPEND_TO_GROUP, FLAG_PERFORM_NO_CLOSE, NONE, USER_MASK, USER_SHIFT |
| Method Summary | |
|---|---|
void |
clearHeader()
Clears the header of the submenu. |
MenuItem |
getItem()
Gets the MenuItem that represents this submenu in the parent
menu. |
SubMenu |
setHeaderIcon(android.graphics.drawable.Drawable icon)
Sets the submenu header's icon to the icon given in icon Drawable. |
SubMenu |
setHeaderIcon(int iconRes)
Sets the submenu header's icon to the icon given in iconRes resource id. |
SubMenu |
setHeaderTitle(CharSequence title)
Sets the submenu header's title to the title given in title. |
SubMenu |
setHeaderTitle(int titleRes)
Sets the submenu header's title to the title given in titleRes resource identifier. |
SubMenu |
setHeaderView(android.view.View view)
Sets the header of the submenu to the View given in
view. |
SubMenu |
setIcon(android.graphics.drawable.Drawable icon)
Change the icon associated with this submenu's item in its parent menu. |
SubMenu |
setIcon(int iconRes)
Change the icon associated with this submenu's item in its parent menu. |
| Methods inherited from interface com.actionbarsherlock.view.Menu |
|---|
add, add, add, add, addIntentOptions, addSubMenu, addSubMenu, addSubMenu, addSubMenu, clear, close, findItem, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupEnabled, setGroupVisible, setQwertyMode, size |
| Method Detail |
|---|
SubMenu setHeaderTitle(int titleRes)
titleRes - The string resource identifier used for the title.
SubMenu setHeaderTitle(CharSequence title)
title - The character sequence used for the title.
SubMenu setHeaderIcon(int iconRes)
iconRes - The resource identifier used for the icon.
SubMenu setHeaderIcon(android.graphics.drawable.Drawable icon)
Drawable.
icon - The Drawable used for the icon.
SubMenu setHeaderView(android.view.View view)
View given in
view. This replaces the header title and icon (and those
replace this).
view - The View used for the header.
void clearHeader()
SubMenu setIcon(int iconRes)
iconRes - The new icon (as a resource ID) to be displayed.
MenuItem.setIcon(int)SubMenu setIcon(android.graphics.drawable.Drawable icon)
icon - The new icon (as a Drawable) to be displayed.
MenuItem.setIcon(Drawable)MenuItem getItem()
MenuItem that represents this submenu in the parent
menu. Use this for setting additional item attributes.
MenuItem that launches the submenu when invoked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||