Friday, May 9, 2014

Dimming the background behind the dialogs

I'm just reblogging what you can find here.
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); 
lp.dimAmount=0.78f; 
dialog.getWindow().setAttributes(lp); 
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
That's it, don't hesitate to comment, to share your knowledge and to correct me.

11 comments: