慕的地6264312
setBackgroundDrawable(new BitmapDrawable());setOutsideTouchable(true);setFocusable(true); //消失的时候设置窗体背景变亮 setOnDismissListener(new OnDismissListener() { @Override public void onDismiss() { WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 1.0f; getWindow().setAttributes(lp); } });