Return to Snippet

Revision: 28699
at July 13, 2010 00:12 by Kingcron

Initial Code
dialog = new AlertDialog.Builder(WordCube.this)
    .setPositiveButton(R.string.btn_close, null)

WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); // retrieves the windows attributes
lp.dimAmount=0.0f; // sets the dimming amount to zero
dialog.getWindow().setAttributes(lp); // sets the updated windows attributes
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // adds the flag to blur bg

Initial URL

Initial Description

Initial Title
Blurring/dimming background windows when dialog is displayed

Initial Tags

Initial Language