Fit image

This commit is contained in:
Kirill Kamakin
2021-11-15 19:30:52 +03:00
parent 37e89d0c2b
commit 96d337e7a1
2 changed files with 1 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ class ImageLoaderGlide @Inject constructor() : ImageLoader {
override fun loadImage(url: String?, @DrawableRes placeholderId: Int, imageView: ImageView) {
GlideApp.with(imageView)
.load(url)
.centerCrop()
.placeholder(placeholderId)
.into(imageView)
}