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)
}

View File

@@ -27,7 +27,6 @@
android:id="@+id/image"
android:layout_width="@dimen/width_view_holder_recipe_image"
android:layout_height="@dimen/height_view_holder_recipe_image"
android:layout_margin="@dimen/margin_small"
android:contentDescription="@string/content_description_view_holder_recipe_image"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"