picasso-transformations
picasso-transformations copied to clipboard
how to add Blur Effect using Kotlin
I am sorry if this is trivial, but I am a beginner. and currently I am using Kotlin. I want to blur my image after downloading using picasso.
and here is the code I use:
Picasso.get()
.load(currentEvent.posterDownloadPath)
.transform(BlurTransformation(25,3))
.into(recommendedEventViewHolder.blurryImageView)
but unfortunately I have error like in this image: https://i.stack.imgur.com/Nvq53.png
so how to properly use BlurTransformation effect ?
I finally find out why I still have the error, i.stack.imgur.com/uyEoF.png . previously I add wasabeef transformation for GLIDE, and when I choose the wrong BlurTransformation class, I choose glide instead of Picasso. problem solved, thanks