📜  如何在 android 中检查键盘是否打开 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:07.309000             🧑  作者: Mango

代码示例1
KeyboardUtils.addKeyboardToggleListener(this, new KeyboardUtils.SoftKeyboardToggleListener()
{
    @Override
    public void onToggleSoftKeyboard(boolean isVisible)
    {
        Log.d("keyboard", "keyboard visible: "+isVisible);
    }
});