[英]showInputMethodPicker not working on devices above Marshmallow?
In the documentation, I saw that在文档中,我看到了
showInputMethodPicker
Added in API level 3 public void showInputMethodPicker () Show IME picker popup window. showInputMethodPicker
添加在 API 级别 3 public void showInputMethodPicker () 显示 IME 选择器弹出 window。
Requires the PackageManager#FEATURE_INPUT_METHODS feature which can be detected using PackageManager#hasSystemFeature(String).
需要可以使用 PackageManager#hasSystemFeature(String) 检测到的 PackageManager#FEATURE_INPUT_METHODS 功能。
I don't know how to add `FEATURE_INPUT_METHODS to enable the choose keyboard popup.我不知道如何添加 `FEATURE_INPUT_METHODS 来启用选择键盘弹出窗口。
System features are set by device manufacturers, based on the device capabilities.系统功能由设备制造商根据设备功能设置。 An app does not add them.
应用程序不会添加它们。
The statement in the documentation about FEATURE_INPUT_METHODS
is so that you can detect if the device that your app runs on supports input methods, so you know whether it makes sense to call showInputMethodPicker()
or not.文档中有关
FEATURE_INPUT_METHODS
的声明是为了让您可以检测运行您的应用程序的设备是否支持输入法,以便您知道调用showInputMethodPicker()
是否有意义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.