0

I want make background window blur when showing alert dialog. I have tried -

 WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
    lp.dimAmount = 0.0f;
    dialog.getWindow().setAttributes(lp);
    dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

but it is not working in, also it seems "FLAG_BLUR_BEHIND" is deprecated. is there any other way to achieve this without using third party libraries?

Aditi Parikh
  • 1,522
  • 3
  • 13
  • 34
Anbarasu Chinna
  • 975
  • 9
  • 28

0 Answers0