Share via


AccessibilityNodeInfo.ContainerTitleFormatted Property

Definition

Returns the container title. -or- Sets the container title for app-developer-defined container which can be any type of ViewGroup or layout.

public virtual Java.Lang.ICharSequence? ContainerTitleFormatted { [Android.Runtime.Register("getContainerTitle", "()Ljava/lang/CharSequence;", "GetGetContainerTitleHandler", ApiSince=34)] get; [Android.Runtime.Register("setContainerTitle", "(Ljava/lang/CharSequence;)V", "GetSetContainerTitle_Ljava_lang_CharSequence_Handler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getContainerTitle", "()Ljava/lang/CharSequence;", "GetGetContainerTitleHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setContainerTitle", "(Ljava/lang/CharSequence;)V", "GetSetContainerTitle_Ljava_lang_CharSequence_Handler", ApiSince=34)>]
member this.ContainerTitleFormatted : Java.Lang.ICharSequence with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the container title.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.getContainerTitle().

Property setter documentation:

Sets the container title for app-developer-defined container which can be any type of ViewGroup or layout. Container title will be used to group together related controls, similar to HTML fieldset. Or container title may identify a large piece of the UI that is visibly grouped together, such as a toolbar or a card, etc.

Container title helps to assist in navigation across containers and other groups. For example, a screen reader may use this to determine where to put accessibility focus.

Container title is different from pane title#setPaneTitle which indicates that the node represents a window or activity.

Example: An app can set container titles on several non-modal menus, containing TextViews or ImageButtons that have content descriptions, text, etc. Screen readers can quickly switch accessibility focus among menus instead of child views. Other accessibility-services can easily find the menu.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.setContainerTitle(java.lang.CharSequence).

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