我正在开发一个 Android 自定义键盘。我需要执行搜索操作,根据用户选择的文本字段将光标移动到下一个文本字段操作。如何执行这些操作?
最佳答案
我得到了答案。
getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_GO);
getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_SEARCH);
getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_NEXT);
关于java - 如何通过android自定义键盘操作按钮执行搜索操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29069778/