开发者

How to blur whole layout when popup arrives in android

开发者 https://www.devze.com 2023-04-02 05:29 出处:网络
can anybody tell How to blur whole layout w开发者_JAVA技巧hen popup arrives in android can anybody provide example

can anybody tell How to blur whole layout w开发者_JAVA技巧hen popup arrives in android can anybody provide example Thanks


This code may be helpful to you:

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

精彩评论

暂无评论...
验证码 换一张
取 消