Home Tags About

Android: Blurring and dimming background windows from dialogs

20 Jan 2012
android gui
		WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
		lp.dimAmount=0.0f;
		lp.alpha=0.5f;
		dialog.getWindow().setAttributes(lp);
		dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);