wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.6k stars 606 forks source link

Doesn't work with webviews #61

Open AllanWang opened 7 years ago

AllanWang commented 7 years ago

I was planning on using this to blur the entire activity while a dialog pops up. However, getting the drawable cache returns the section at the very top of the webview, not the portion that is currently visible. When blurring, I was using the decor view as a target

okarakose commented 7 years ago

I have this structure :

MyCustomViewGroup ActionBar WebView

I am giving blur effect with this code : Blurry.with(RootActivity.this).radius(15).sampling(1).onto(myCustomContainer);

and WebView part disappeared. what should we do ?

AllanWang commented 7 years ago

What do you mean by webview part disappeared? Where is the container?

If the webview isn't inside the container it's not going to be part of the blurred image