Package icyllis.modernui.view
Interface ContextMenu
- All Superinterfaces:
- Menu
- All Known Implementing Classes:
- ContextMenuBuilder
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAdditional information regarding the creation of the context menu.
- 
Field SummaryFields inherited from interface icyllis.modernui.view.MenuCATEGORY_ALTERNATIVE, CATEGORY_CONTAINER, CATEGORY_MASK, CATEGORY_SECONDARY, CATEGORY_SHIFT, CATEGORY_SYSTEM, FIRST, FLAG_ALWAYS_PERFORM_CLOSE, FLAG_PERFORM_NO_CLOSE, NONE, SUPPORTED_MODIFIERS_MASK, USER_MASK, USER_SHIFT
- 
Method SummaryModifier and TypeMethodDescriptionvoidClears the header of the context menu.setHeaderIcon(Drawable icon) Sets the context menu header's icon to the icon given in iconDrawable.setHeaderTitle(CharSequence title) Sets the context menu header's title to the title given in title.setHeaderView(View view) Sets the header of the context menu to theViewgiven in view.Methods inherited from interface icyllis.modernui.view.Menuadd, add, addSubMenu, addSubMenu, clear, close, findItem, getItem, hasVisibleItems, isShortcutKey, performIdentifierAction, performShortcut, removeGroup, removeItem, setGroupCheckable, setGroupDividerEnabled, setGroupEnabled, setGroupVisible, setOptionalIconsVisible, setQwertyMode, size
- 
Method Details- 
setHeaderTitleSets the context menu header's title to the title given in title.- Parameters:
- title- The character sequence used for the title.
- Returns:
- This ContextMenu so additional setters can be called.
 
- 
setHeaderIconSets the context menu header's icon to the icon given in iconDrawable.- Parameters:
- icon- The- Drawableused for the icon.
- Returns:
- This ContextMenu so additional setters can be called.
 
- 
setHeaderViewSets the header of the context menu to theViewgiven in view. This replaces the header title and icon (and those replace this).- Parameters:
- view- The- Viewused for the header.
- Returns:
- This ContextMenu so additional setters can be called.
 
- 
clearHeadervoid clearHeader()Clears the header of the context menu.
 
-