判断键盘是否显示,之后隐藏键盘

来源:互联网 发布:最好的闹钟软件 编辑:程序博客网 时间:2024/05/22 12:20
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
                    if (imm != null) {
                        imm.hideSoftInputFromWindow(getWindow().getDecorView()
                                .getWindowToken(), 0);
                    }



0 0
原创粉丝点击