解决方法: Window window = dialog.getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);