共用方式為


View.AccessibilityTraversalBefore Property

Definition

Gets the id of a view before which this one is visited in accessibility traversal. -or- Sets the id of a view before which this one is visited in accessibility traversal.

public virtual int AccessibilityTraversalBefore { [Android.Runtime.Register("getAccessibilityTraversalBefore", "()I", "GetGetAccessibilityTraversalBeforeHandler", ApiSince=22)] get; [Android.Runtime.Register("setAccessibilityTraversalBefore", "(I)V", "GetSetAccessibilityTraversalBefore_IHandler", ApiSince=22)] set; }
[<get: Android.Runtime.Register("getAccessibilityTraversalBefore", "()I", "GetGetAccessibilityTraversalBeforeHandler", ApiSince=22)>]
[<set: Android.Runtime.Register("setAccessibilityTraversalBefore", "(I)V", "GetSetAccessibilityTraversalBefore_IHandler", ApiSince=22)>]
member this.AccessibilityTraversalBefore : int with get, set

Property Value

The id of a view this one precedes in accessibility traversal if specified, otherwise #NO_ID.

Attributes

Remarks

Property getter documentation:

Gets the id of a view before which this one is visited in accessibility traversal.

Java documentation for android.view.View.getAccessibilityTraversalBefore().

Property setter documentation:

Sets the id of a view before which this one is visited in accessibility traversal. A screen-reader must visit the content of this view before the content of the one it precedes. For example, if view B is set to be before view A, then a screen-reader will traverse the entire content of B before traversing the entire content of A, regardles of what traversal strategy it is using.

Views that do not have specified before/after relationships are traversed in order determined by the screen-reader.

Setting that this view is before a view that is not important for accessibility or if this view is not important for accessibility will have no effect as the screen-reader is not aware of unimportant views.

Java documentation for android.view.View.setAccessibilityTraversalBefore(int).

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