简体   繁体   English

showInputMethodPicker 在 Marshmallow 以上的设备上不起作用?

[英]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.

相关问题 GoogleApiClient无法在棉花糖及以上设备中使用吗? - GoogleApiClient is not working in marshmallow and above devices? 相机许可在棉花糖及以上设备上不起作用并崩溃 - Camera permission is not working on Marshmallow and above devices and crashes 无法在Android设备(在MarshMallow及更高版本)上创建目录 - Failed to create directory in Android (on MarshMallow and above) devices 在棉花糖上方的设备中以编程方式在Android中断开通话 - to disconnect the call programmatically in android for devices above Marshmallow 从棉花糖及以上棉花糖设备上的onCreate中读取外部存储中的文件 - Read files from external storage in onCreate on marshmallow and above marshmallow devices 通话记录不适用于棉花糖及以上版本 - Call recording not working in marshmallow and above SmsManager在某些设备中不起作用(棉花糖+) - SmsManager is not working in some devices (Marshmallow +) 来自通知的 showInputMethodPicker 在 Android 9 中不起作用 - showInputMethodPicker from notification not working in Android 9 作物功能适用于棉花糖或以上,但不适用于低于棉花糖 - Crop functionality is working on marshmallow or above but do not work below marshmallow ChatHead服务在Nexus设备上的Lollipop和Marshmallow中不起作用 - ChatHead Service is Not Working in Lollipop and Marshmallow on Nexus devices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM