开发者

Input Method Dialog

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜