I wanted to know how can I achieve a blur effect in android-studio . I don't do it with Photoshop or similar software because it's the user's profile and the profile photo is the one that blurs in the background.
For that reason it must be dynamic .
This is the example image.
First you place it in the background just as you place it as the main one, to do the effect you can use the Blurry library, you simply have to add it to your project through Graddle.
blurry:
Just add this in your Graddle app file and you can use the library.
Add this example activity to your application, in it you can see how the library works.
activity_example.xml
Add a drawable to the views, so you can see the effect.
ExampleActivity.java
Start in onCreate:
Since it is a visual change at runtime, it is necessary to handle the transformation within a thread.
First your image must be contained within a View(Layout) and the change will be applied to it.
activity_example.xml:
ExampleActivity.java:
I put this in an answer because it's a bit big.
Adding something else to @Max Sandoval's answer, I think that apart from the library you should add RenderScript to your build.gradle:
That's what I had to do to make it work. All the best.