Android应用怎么实现实时模糊效果的View,同时View下面仍然有一个VideoView仍然在播放视频?
ringa_lee
ringa_lee 2017-04-18 09:19:58
0
2
696

Android中获取一张图片然后模糊比较容易,但是能不能实现IOS中的那种试试模糊,例如iOS通知栏下拉时,覆盖的区域被透明、模糊。

在小米手机上看到了,小米电视打开设置也有了同样的效果。

ringa_lee
ringa_lee

ringa_lee

reply all(2)
黄舟

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

左手右手慢动作

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template