Dialog中有EditText不弹输入法的bug

// 在Dialog onCreate中加入以下代码getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE|WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);

你可能感兴趣的:(Dialog中有EditText不弹输入法的bug)