弹出一个窗口,让背后的窗口变暗一点
WindowManager.LayoutParams lp = getWindow().getAttributes();
//When FLAG_DIM_BEHIND
is set, this is the amount of dimming to apply. Range is from 1.0 for completely opaque to 0.0 for no dim.
getWindow().setAttributes(lp);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND, WindowManager.LayoutParams.FLAG_DIM_BEHIND);