I have an imageview and i set Image Resources programmatically like this:
int resourceId = getResources().getIdentifier("imagename", "drawable", "mypackage");
imgLock.setImageResource(resourceId);
Is there any easy way to show my ImageView with blurry image?
Tap on the photo you wish to blur. Tap on Mosaic to open the edit tools. Now, tap and swipe on the screen to blur a portion. Tap inside the selected area and move it to the respective position.
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 !
Step 1: Download the YouCam Perfect app. Step 2: Open the app and click Photo Edit. Step 3: Find the Blur tool in Tools. Step 4: Adjust the blur shape and then select the background you want to blur.
You can use glide transformations https://github.com/wasabeef/glide-transformations you can blur the image with one line of code
Glide.with(this).load(R.drawable.demo)
.bitmapTransform(new BlurTransformation(context))
.into((ImageView) findViewById(R.id.image));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With