隱藏輸入法

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);ide

相關文章
相關標籤/搜索