1、InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
2、imm.hideSoftInputFromWindow(edit_text_username.getWindowToken(),0) ;
通过InputMethodManager对输入法键盘进行关闭
最新推荐文章于 2022-05-27 15:08:28 发布
1、InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
2、imm.hideSoftInputFromWindow(edit_text_username.getWindowToken(),0) ;