Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to blur background images in Android

Tags:

java

android

What is the best way to blur background images like the image below? I saw some code and libraries but their are a couple of years old or like BlurBehind library, but it doesn't give the same effect. Thanks in advance!

enter image description here

like image 226
heloisasim Avatar asked Jul 26 '15 21:07

heloisasim


People also ask

How do you get the blur effect on Android?

There are two way to achieve. 1) You can use FrameLayout to which you can set blur background. 2) You can use latest Blur library which i have !

Is blur available for Android?

Blur is available for both Android and iOS mobile devices and is compatible with both Mac and PC systems.


1 Answers

The easiest way to do that is use a library. Take a look at this one: https://github.com/wasabeef/Blurry

With the library you only need to do this:

Blurry.with(context)   .radius(10)   .sampling(8)   .color(Color.argb(66, 255, 255, 0))   .async()   .onto(rootView); 
like image 149
Sandro Machado Avatar answered Oct 05 '22 22:10

Sandro Machado