Java 如何通过android自定义键盘操作按钮执行搜索操作?
我正在开发一个android定制键盘。我需要执行搜索操作,根据用户选择的文本字段将光标移动到下一个文本字段操作。如何执行这些操作?我得到了答案。Java 如何通过android自定义键盘操作按钮执行搜索操作?,java,android,android-softkeyboard,custom-keyboard,Java,Android,Android Softkeyboard,Custom Keyboard,我正在开发一个android定制键盘。我需要执行搜索操作,根据用户选择的文本字段将光标移动到下一个文本字段操作。如何执行这些操作?我得到了答案。 getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_GO); getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_SEARCH); getCurrentInputConnecti
getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_GO);
getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_SEARCH);
getCurrentInputConnection().performEditorAction(EditorInfo.IME_ACTION_NEXT);