隐藏输入法软键盘
/** * 隐藏软键盘 * * @param context * @param editText */ public static void hideSoftKeyBroad(Context context, View view) { InputMethodManager mgr = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); mgr.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); }