ActionMode

Represents a contextual mode of the user interface. Action modes can be used to provide
alternative interaction modes and replace parts of the normal UI until finished.
Examples of good action modes include text selection and contextual actions.

Developer Guides

For information about how to provide contextual actions with ActionMode,
read the Menus
developer guide.

Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.

getType

hide

Hide the action mode view from obstructing the content below for a short duration.
This only makes sense for action modes that support dynamic positioning on the screen.
If this method is called again before the hide duration expires, the later hide call will
cancel the former and then take effect.
NOTE that there is an internal limit to how long the mode can be hidden for. It's typically
about a few seconds.

invalidateContentRect

Invalidate the content rect associated to this ActionMode. This only makes sense for
action modes that support dynamic positioning on the screen, and provides a more efficient
way to reposition it without invalidating the whole action mode.

setTitleOptionalHint

Set whether or not the title/subtitle display for this action mode
is optional.

In many cases the supplied title for an action mode is merely
meant to add context and is not strictly required for the action
mode to be useful. If the title is optional, the system may choose
to hide the title entirely rather than truncate it due to a lack
of available space.

Note that this is merely a hint; the underlying implementation
may choose to ignore this setting under some circumstances.