Share via


ActionMode.TitleOptionalHint Property

Definition

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

public virtual bool TitleOptionalHint { [Android.Runtime.Register("getTitleOptionalHint", "()Z", "GetGetTitleOptionalHintHandler")] get; [Android.Runtime.Register("setTitleOptionalHint", "(Z)V", "GetSetTitleOptionalHint_ZHandler")] set; }
[<get: Android.Runtime.Register("getTitleOptionalHint", "()Z", "GetGetTitleOptionalHintHandler")>]
[<set: Android.Runtime.Register("setTitleOptionalHint", "(Z)V", "GetSetTitleOptionalHint_ZHandler")>]
member this.TitleOptionalHint : bool with get, set

Property Value

true if this action mode has been given a hint to consider the title/subtitle display to be optional.

Attributes

Remarks

Property getter documentation:

Java documentation for android.view.ActionMode.getTitleOptionalHint().

Property setter documentation:

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.

Java documentation for android.view.ActionMode.setTitleOptionalHint(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also