android 代码关闭软键盘 InputMethodManager imm = (InputMethodManager)getSystemServic(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);