AccessibilityNodeInfo.ExpandedState 属性

定义

获取此节点的展开状态。 - 或 - 设置节点的展开状态。

public virtual Android.Views.Accessibility.ExpandedState ExpandedState { [Android.Runtime.Register("getExpandedState", "()I", "GetGetExpandedStateHandler", ApiSince=36)] get; [Android.Runtime.Register("setExpandedState", "(I)V", "GetSetExpandedState_IHandler", ApiSince=36)] set; }
[<get: Android.Runtime.Register("getExpandedState", "()I", "GetGetExpandedStateHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setExpandedState", "(I)V", "GetSetExpandedState_IHandler", ApiSince=36)>]
member this.ExpandedState : Android.Views.Accessibility.ExpandedState with get, set

属性值

扩展状态之一:<ul><li<>#EXPANDED_STATE_UNDEFINEDli li><#EXPANDED_STATE_COLLAPSEDli#EXPANDED_STATE_FULL<><>#EXPANDED_STATE_PARTIAL/ul>

属性

注解

属性 getter 文档:

获取此节点的展开状态。

Java文档android.view.accessibility.AccessibilityNodeInfo.getExpandedState()

属性 setter 文档:

设置节点的展开状态。

<strong Note:</strong>> cannot be called from anandroid.accessibilityservice.AccessibilityService. 此类在传递到 an android.accessibilityservice.AccessibilityService之前是不可变的。

Java文档android.view.accessibility.AccessibilityNodeInfo.setExpandedState(int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于