隐藏输入法
InputMethodManager manager = (InputMethodManager) mContext
.getSystemService(Context.INPUT_METHOD_SERVICE);
if (((Activity) mContext).getWindow().getAttributes().softInputMode != WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN)
manager.hideSoftInputFromWindow(((Activity) mContext).getCurrentFocus().getWindowToken(),
InputMethodManager.HIDE_NOT_ALWAYS);