AccessibilityNodeInfo.ActionSetText 字段

定义

注意

This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.

设置节点文本的操作。

[Android.Runtime.Register("ACTION_SET_TEXT")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.", true)]
public const Android.Views.Accessibility.Action ActionSetText = 2097152;
[<Android.Runtime.Register("ACTION_SET_TEXT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Accessibility.Action enum directly instead of this field.", true)>]
val mutable ActionSetText : Android.Views.Accessibility.Action

字段值

Value = 2097152

实现

属性

注解

设置节点文本的操作。 在没有参数的情况下执行操作,使用 null 或清 CharSequence 空将清除文本。 此操作还将将光标置于文本末尾。

<strong Arguments:</strong>#ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE<br><strong>>example:</strong><pre><p> Bundle arguments = new Bundle(); arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, "android"); info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments); </pre>

适用于 . 的 android.view.accessibility.AccessibilityNodeInfo.ACTION_SET_TEXTJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于