public class ActionBarImpl.ActionModeImpl extends ActionMode implements MenuBuilder.Callback
ActionMode.Callback| Constructor and Description | 
|---|
ActionModeImpl(ActionMode.Callback callback)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
dispatchOnCreate()  | 
void | 
finish()
Finish and close this action mode. 
 | 
android.view.View | 
getCustomView()
Returns the current custom view for this action mode. 
 | 
Menu | 
getMenu()
Returns the menu of actions that this action mode presents. 
 | 
MenuInflater | 
getMenuInflater()
Returns a  
MenuInflater with the ActionMode's context. | 
CharSequence | 
getSubtitle()
Returns the current subtitle of this action mode. 
 | 
CharSequence | 
getTitle()
Returns the current title of this action mode. 
 | 
void | 
invalidate()
Invalidate the action mode and refresh menu content. 
 | 
void | 
onCloseMenu(MenuBuilder menu,
           boolean allMenusAreClosing)  | 
void | 
onCloseSubMenu(SubMenuBuilder menu)  | 
boolean | 
onMenuItemSelected(MenuBuilder menu,
                  MenuItem item)
Called when a menu item is selected. 
 | 
void | 
onMenuModeChange(MenuBuilder menu)
Called when the mode of the menu changes (for example, from icon to expanded). 
 | 
boolean | 
onSubMenuSelected(SubMenuBuilder subMenu)  | 
void | 
setCustomView(android.view.View view)
Set a custom view for this action mode. 
 | 
void | 
setSubtitle(CharSequence subtitle)
Set the subtitle of the action mode. 
 | 
void | 
setSubtitle(int resId)
Set the subtitle of the action mode. 
 | 
void | 
setTitle(CharSequence title)
Set the title of the action mode. 
 | 
void | 
setTitle(int resId)
Set the title of the action mode. 
 | 
getTag, isUiFocusable, setTagpublic ActionModeImpl(ActionMode.Callback callback)
public MenuInflater getMenuInflater()
ActionModeMenuInflater with the ActionMode's context.getMenuInflater in class ActionModepublic Menu getMenu()
ActionModegetMenu in class ActionModepublic void finish()
ActionModeActionMode.Callback will
 have its ActionMode.Callback.onDestroyActionMode(ActionMode) method called.finish in class ActionModepublic void invalidate()
ActionModeActionMode.Callback will have its
 ActionMode.Callback.onPrepareActionMode(ActionMode, Menu) method called.
 If it returns true the menu will be scanned for updated content and any relevant changes
 will be reflected to the user.invalidate in class ActionModepublic boolean dispatchOnCreate()
public void setCustomView(android.view.View view)
ActionModesetCustomView in class ActionModeview - Custom view to use in place of the title/subtitle.ActionMode.setTitle(CharSequence), 
ActionMode.setSubtitle(CharSequence)public void setSubtitle(CharSequence subtitle)
ActionModesetSubtitle in class ActionModesubtitle - Subtitle string to setActionMode.setSubtitle(int), 
ActionMode.setCustomView(View)public void setTitle(CharSequence title)
ActionModesetTitle in class ActionModetitle - Title string to setActionMode.setTitle(int), 
ActionMode.setCustomView(View)public void setTitle(int resId)
ActionModesetTitle in class ActionModeresId - Resource ID of a string to set as the titleActionMode.setTitle(CharSequence), 
ActionMode.setCustomView(View)public void setSubtitle(int resId)
ActionModesetSubtitle in class ActionModeresId - Resource ID of a string to set as the subtitleActionMode.setSubtitle(CharSequence), 
ActionMode.setCustomView(View)public CharSequence getTitle()
ActionModegetTitle in class ActionModepublic CharSequence getSubtitle()
ActionModegetSubtitle in class ActionModepublic android.view.View getCustomView()
ActionModegetCustomView in class ActionModepublic boolean onMenuItemSelected(MenuBuilder menu, MenuItem item)
MenuBuilder.CallbackonMenuItemSelected in interface MenuBuilder.Callbackmenu - The menu that is the parent of the itemitem - The menu item that is selectedpublic void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing)
public boolean onSubMenuSelected(SubMenuBuilder subMenu)
public void onCloseSubMenu(SubMenuBuilder menu)
public void onMenuModeChange(MenuBuilder menu)
MenuBuilder.CallbackonMenuModeChange in interface MenuBuilder.Callbackmenu - the menu that has changed modesCopyright © 2011–2014. All rights reserved.