windowSoftInputMode设置stateHidden,DIALOG dismiss后,键盘再次显示
解决1
把windowSoftInputMode中的stateHidden属性去掉
android:windowSoftInputMode="adjustPan"
解决2
在//在super.dismiss();前添加键盘隐藏方法,避免windowToken为空隐藏不了键盘
@Override
private void onDismiss(){
//在super.dismiss();前添加键盘隐藏方法View view = getCurrentFocus();if (view instanceof EditText && mContext!= null) {InputMethodManager imm = (InputMethodManager) mContext.getSystemService(INPUT_METHOD_SERVICE);if (getCurrentFocus() != null) {imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);}}super.dismiss();}