Idea taken from Android: Blurring and dimming background windows from dialog. I\'m having trouble getting the content under my dialog to blur. When calling eula.getWindow(
eula
is the Builder, not the dialog itself. Try:
final AlertDialog eulaDialog = eula.create();
eulaDialog.show();
WindowManager.LayoutParams lp = eulaDialog.getWindow().getAttributes();
lp.dimAmount = 0.0F;
eulaDialog.getWindow().setAttributes(lp);
eulaDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);