Android Question Blur Effect on a Panel

treehousefrog

Member
Licensed User
Longtime User
Hey guys!

So I'm creating a launcher for someone and they have requested that I use a 'frosted glass' effect on a view much like the iOS7 look. At first I thought I could do this by just blurring an image, turning it black and white, setting transparency and then laying it over the background - but this doesn't 'blur' the wallpaper that you can see behind it as such, just makes it harder to see.

So my question is, how could I go about creating a uniform 'blur' effect on a panel that would distort the image behind it? Bearing in mind it will be on top of all manner of views and text? Is there a way to do this?

Essentially this is the effect I' going for (on the left): http://media.idownloadblog.com/wp-content/uploads/2013/10/Blur-Contrast-iOS-7-Control-Center.png

Any ideas? Thanks a ton in advance! :-D
 

thedesolatesoul

Expert
Licensed User
Longtime User
I tried to do it in the same way you said. It doesnt work.
Android used to have an effect for this BLUR but they removed it in recent versions since it was using too much processing.
See here FLAG_BLUR_BEHIND: http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html

I think it cannot be done. Either you have to take a screenshot of what is behind and then apply the effect on it. Otherwise just using a transparent layer it will not blur properly.

If you do find a way, I would like to know it too.
 
Upvote 0
Top