0

Is there a way to apply a gaussian blur effect to a view? I'd like to apply this effect to a relative layout that is over another one. I've found this, but it's only for images. P.S.: the relative layout has a solid color (I used the setBackgroundColor method).

Thanks!

Community
  • 1
  • 1
Andre Amaral Braga
  • 321
  • 1
  • 7
  • 23

1 Answers1

1

On Android you can create drawables like shapes or gradients and you can combine them together to rather complex images.

But, something complex like a Gaussian Blur is not part of it, also not with transparent colors.

The way to do that is, to create a bitmap and set the background of your Layout programmatically.

Things get worth, when you want to blurr the actual screen underlying your app. There's no way to grab the image underlying your app.

jboi
  • 11,324
  • 4
  • 36
  • 43