Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java android-使强背景模糊_Java_Android_Blur - Fatal编程技术网

Java android-使强背景模糊

Java android-使强背景模糊,java,android,blur,Java,Android,Blur,当弹出窗口显示时,我可以模糊背景,因此: getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND); 有没有办法让模糊变得更强烈?我在网上找到了这个。。。。。WindowManager.LayoutParams lp=getWindow().getAttributes()

当弹出窗口显示时,我可以模糊背景,因此:

    getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,  
                         WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

有没有办法让模糊变得更强烈?

我在网上找到了这个。。。。。WindowManager.LayoutParams lp=getWindow().getAttributes();lp.dimAmount=0.0f;getWindow().setAttributes(lp);如果您喜欢冒险,请尝试使用以下方法制作您自己的模糊算法: