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:ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCEExample:
Bundle arguments = new Bundle();
arguments.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE,
"android");
info.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, arguments);
Content copied to clipboard
Content copied to clipboard