Android - 如何检测屏幕中显示的软键盘

标签 android android-softkeyboard

<分区>

Possible Duplicate:
Android: how can i tell if the soft keyboard is showing or not?

在android中如何检测软键盘是否显示在屏幕上?

最佳答案

没有直接的方法 - 请参阅 http://groups.google.com/group/android-platform/browse_thread/thread/1728f26f2334c060/5e4910f0d9eb898a来自 Android 团队的 Dianne Hackborn 已经回复了。但是,您可以通过检查 #onMeasure 中的窗口大小是否更改来间接检测到它。参见 How to check visibility of software keyboard in Android? .

关于Android - 如何检测屏幕中显示的软键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4747417/

相关文章:

android - 带有键盘向上移动的编辑文本的 Bottom Sheet

android - 对话框关闭时隐藏软输入键盘

android - 设备在 USB 调试时无法识别 AVD 设备

android - FusedLocationProviderClient 构造函数被标记为内部

android - 显示没有动画的键盘

java - 如何将软键盘隐藏在 fragment 中?

android - 在 Android 应用程序中存储着色器代码的位置

android - 使用Android热敏打印机打印条码

android - 如何更新 SQLite 中的空日期字段

Android键盘更改回车键