android隐藏软键盘代码

来源:互联网 发布:淘宝客服工作总结100字 编辑:程序博客网 时间:2024/04/30 08:39

InputMethodManager imm;


imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);  


imm.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(),

InputMethodManager.HIDE_NOT_ALWAYS);  

0 0
原创粉丝点击