在活动中如果我点击列表视图项目,我会在列表视图下面显示警告对话框.... 即使在获得弹出窗口后,我也可以滚动列表视图..
答案 0 :(得分:0)
您可以将视图放在窗口管理器中。将显示警报视图,同时您也可以访问列表视图。
WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
WindowManager.LayoutParams params = new WindowManager.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.TYPE_PHONE,
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON,
PixelFormat.TRANSLUCENT);
params.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
windowManager.addView(yourPopupView, params);