// AlertDialog默认设置了WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM这个标志,所以键盘不会显示
dialog.getWindow().clearFlags(WindowManager.LayoutParams。FLAG_ALT_FOCUSABLE_IM);
// AlertDialog默认设置了WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM这个标志,所以键盘不会显示
dialog.getWindow().clearFlags(WindowManager.LayoutParams。FLAG_ALT_FOCUSABLE_IM);