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);
隐藏输入法
时间: 2024-10-17 05:03:17