开发者

Input Method Dialog

开发者 https://www.devze.com 2023-02-04 20:46 出处:网络
is 开发者_如何学Gothere any way to show the Input Method selection dialog from the source code?From inside an Activity:

is 开发者_如何学Gothere any way to show the Input Method selection dialog from the source code?


From inside an Activity:

InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showInputMethodPicker();

Or if you have a Context object (or getContext() (a subclassed view)):

InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showInputMethodPicker();
0

精彩评论

暂无评论...
验证码 换一张
取 消