ACTION_SET_TEXT
Action that sets the text of the node. Performing the action without argument, using null
or empty CharSequence will clear the text. This action will also put the cursor at the end of text.
Arguments:AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCEExample:
Bundle arguments = new Bundle();
arguments.putCharSequence(AccessibilityNodeInfoCompat.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
"android");
info.performAction(AccessibilityActionCompat.ACTION_SET_TEXT.getId(), arguments);
Content copied to clipboard
Content copied to clipboard
The UI element that implements this should send a TYPE_VIEW_TEXT_CHANGED event if its text is updated. This element should also return true
for isEditable.