如何显示“选择输入法”对话框

问题描述

| 您是否知道如何在活动中显示“选择输入法”对话框 我已经搜索了好几个小时,没有运气。 任何想法?     

解决方法

        显示选择输入法对话框:
InputMethodManager im = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
im.showInputMethodPicker();
    ,        相同的答案,但在
Kotlin
单行中:
 (context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager).showInputMethodPicker()