Android中获取一张图片然后模糊比较容易,但是能不能实现IOS中的那种试试模糊,例如iOS通知栏下拉时,覆盖的区域被透明、模糊。
在小米手机上看到了,小米电视打开设置也有了同样的效果。
黄舟2017-04-18 09:21:58
You may not believe it,
You take a blurred frosted glass image as a foreground image, place it on top of the image that needs to be blurred, scroll this image, and you can see the "real-time blurring" effect.
The correct method is to intercept the rect in real time as the calculated area, and use renderscript's blur algorithm to calculate the return display, which is ok, and the response speed is also okay
ringa_lee2017-04-18 09:21:58
Portal: github: Search - android blur
p.s. If you need to dynamically set the blur level, it is not advisable to directly use the image as a mask.