search

Home  >  Q&A  >  body text

Android应用怎么实现实时模糊效果的View,同时View下面仍然有一个VideoView仍然在播放视频?

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

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

ringa_leeringa_lee2866 days ago747

reply all(2)I'll reply

  • 黄舟

    黄舟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

    reply
    0
  • ringa_lee

    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.

    reply
    0
  • Cancelreply