wasabeef / Blurry

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

Blur behind Alert Dialog issue #87

Open vbv1 opened 5 years ago

vbv1 commented 5 years ago

Hi, Thanks for providing this library. It is working good in most cases.

But I have encountered a scenario, where I need to blur the view whenever an Alert dialog is displayed.

In this case, blur does occur, but it looks very weird. It seems as if the blur is shifting downwards respective to original view instead of overlapping the view(which should ideally happen).

What I did was exactly similar to other scenarios, ie. when displaying the alert dialog, I fetched the view which is to be blurred and set the blur on it as soon as dialog is displayed.

Can you guys recreate the same scenario and observe the behaviour.

Also, if anyone who tried the same, can you help out with the issue. Its been bothering me since long time and I need to fix this.

Thanks !!

sagarrishabh commented 5 years ago

@vbv1 Did you find any solution to this?

7-cat commented 5 years ago

+1

pikaboo commented 4 years ago

The reason for this is the presence of action bar, in my case. I gave an id to the global view, and passed that as the view to be blurred