Compartir a través de


View.IsImportantForAccessibility Property

Definition

Computes whether this view should be exposed for accessibility.

public virtual bool IsImportantForAccessibility { [Android.Runtime.Register("isImportantForAccessibility", "()Z", "GetIsImportantForAccessibilityHandler")] get; }
[<get: Android.Runtime.Register("isImportantForAccessibility", "()Z", "GetIsImportantForAccessibilityHandler")>]
member this.IsImportantForAccessibility : bool

Property Value

Whether the view is exposed for accessibility.

Attributes

Remarks

Computes whether this view should be exposed for accessibility. In general, views that are interactive or provide information are exposed while views that serve only as containers are hidden.

If an ancestor of this view has importance #IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, this method returns false.

Otherwise, the value is computed according to the view's #getImportantForAccessibility() value: <ol> <li>#IMPORTANT_FOR_ACCESSIBILITY_NO or #IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, return false <li>#IMPORTANT_FOR_ACCESSIBILITY_YES, return true<li>#IMPORTANT_FOR_ACCESSIBILITY_AUTO, return true if view satisfies any of the following: <ul> <li>Is actionable, e.g. #isClickable(), #isLongClickable(), or #isFocusable()<li>Has an AccessibilityDelegate<li>Has an interaction listener, e.g. OnTouchListener, OnKeyListener, etc. <li>Is an accessibility live region, e.g. #getAccessibilityLiveRegion() is not #ACCESSIBILITY_LIVE_REGION_NONE. </ul> <li>Has an accessibility pane title, see #setAccessibilityPaneTitle</li> </ol>

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

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