android点击Activity隐藏键盘

在监听器的代码中加入一行,就能够隐藏键盘了。  ide

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

                imm.hideSoftInputFromWindow(pswTxt.getWindowToken(), 0);
相关文章
相关标签/搜索