I've been using Glide to load images in my app. I've a custom transformation which I'm using while loading an image in ImageView
.
The problem is I want to apply my custom transformation & centerCrop
both on the image fetched. But Glide is using only my custom transformation and displaying the image in ImageView
with fitXY
.
Here is my code:
Glide.with(context)
.load(uri)
.placeholder(R.drawable.image_id)
.transform(new CustomTransformation(context))
.centerCrop()
.into(imageView);
How do I achieve the desired result? Any help would be much appreciated.