0

I have a problem. When I adjust the images using the glide, the image no longer blurs. What can I do about this problem? I use this code for setImage to blurimageView

Glide.with(context).asBitmap().load(imgArt).error(R.drawable.imgDefault).into(BlurId)
BlurId.setBlur(20)
Mahyar Mottaghi Zadeh
  • 1,022
  • 3
  • 16
  • 26
sahand
  • 23
  • 4
  • just add a another view with blur background on the ImageView and show its when you need to show other wise hide it – Amit pandey Feb 08 '21 at 09:03

1 Answers1

0

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)
  .apply(RequestOptions.bitmapTransform(BlurTransformation(25, 3)))
  .into(imageView)
Usama Altaf
  • 1,036
  • 1
  • 4
  • 23