Use rounded corners for recipe view holder

This commit is contained in:
Kirill Kamakin
2021-11-25 20:15:01 +03:00
parent e701b5d7df
commit 0d3dfeebd9

View File

@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:shapeAppearance="@style/ShapeAppearance.AllCornersRounded"
android:layout_marginVertical="7dp" android:layout_marginVertical="7dp"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_marginEnd="19dp" android:layout_marginEnd="19dp"
@@ -28,11 +29,12 @@
app:layout_constraintTop_toBottomOf="@+id/image" app:layout_constraintTop_toBottomOf="@+id/image"
tools:text="A delicious cake" /> tools:text="A delicious cake" />
<ImageView <com.google.android.material.imageview.ShapeableImageView
android:id="@+id/image" android:id="@+id/image"
android:layout_width="300dp" android:layout_width="300dp"
android:layout_height="@dimen/height_view_holder_recipe_image" android:layout_height="@dimen/height_view_holder_recipe_image"
android:layout_marginStart="15dp" android:layout_marginStart="15dp"
app:shapeAppearance="@style/ShapeAppearance.AllCornersRounded"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_marginEnd="13dp" android:layout_marginEnd="13dp"
android:contentDescription="@string/content_description_view_holder_recipe_image" android:contentDescription="@string/content_description_view_holder_recipe_image"