0

I need a method that allows the blur effect to apply to any android View (such as ImageView, TextureView, Button, etc.). I have the necessary shader, but I do not know how to apply it to the View. Or maybe there needs another way?

Thank you for any advice.

1 Answers1

0

One way to achieve this is to use a drawable overlay. This coulb be a png images with some blury effect that you will apply on any view, for example by applying a custom style.

David Peicho
  • 453
  • 4
  • 16
  • Actually, the better way is to use a custom shader. You canno't really blur without it (or, I do not know how to do it). A shader is a piece of code running on a graphic card. What you do is access all the current renderer pixels and blur the image using gaussian bluring for instance. – David Peicho Sep 25 '16 at 19:02