AccessibilityNodeInfo.SetLabelFor AccessibilityNodeInfo.SetLabelFor Method

Definition

Overloads

SetLabelFor(View) SetLabelFor(View)

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

SetLabelFor(View, Int32) SetLabelFor(View, Int32)

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

SetLabelFor(View) SetLabelFor(View)

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

[Android.Runtime.Register("setLabelFor", "(Landroid/view/View;)V", "GetSetLabelFor_Landroid_view_View_Handler", ApiSince=17)]
public virtual void SetLabelFor (Android.Views.View labeled);
abstract member SetLabelFor : Android.Views.View -> unit
override this.SetLabelFor : Android.Views.View -> unit

Parameters

labeled
View View

The view for which this info serves as a label.

Remarks

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.

SetLabelFor(View, Int32) SetLabelFor(View, Int32)

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

[Android.Runtime.Register("setLabelFor", "(Landroid/view/View;I)V", "GetSetLabelFor_Landroid_view_View_IHandler", ApiSince=17)]
public virtual void SetLabelFor (Android.Views.View root, int virtualDescendantId);
abstract member SetLabelFor : Android.Views.View * int -> unit
override this.SetLabelFor : Android.Views.View * int -> unit

Parameters

root
View View

The root whose virtual descendant serves as a label.

virtualDescendantId
Int32 Int32

The id of the virtual descendant.

Remarks

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