开发者

How to blur whole layout when popup arrives in android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜