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.

setTitleOptionalHint

void setTitleOptionalHint (boolean titleOptional)

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.