版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/guiwudao/article/details/51783740
/** * 隐藏软键盘 */ private void hideInputWindow() { ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); }