Tag: android softkeyboard

在Android中获取键盘语言或检测用户输入语言

问题描述 我正在尝试检测当前选定的键盘语言。 为此,我使用以下代码: 码 /* Return the handle to a system-level service by name. The class of the returned * object varies by the requested name. */ InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); /* Returns the current input method subtype. This subtype is one of the subtypes in the * current input method. This method returns […]