From 5be8cdaffdf9d8f8775d1f76a942152b8660dd3a Mon Sep 17 00:00:00 2001 From: Elysium <61485096+Xrondev@users.noreply.github.com> Date: Fri, 19 Apr 2024 04:09:49 +0800 Subject: [PATCH] Add constraints --- app/src/main/res/layout/item_message_image.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/item_message_image.xml b/app/src/main/res/layout/item_message_image.xml index 1258e6e..cfe36b3 100644 --- a/app/src/main/res/layout/item_message_image.xml +++ b/app/src/main/res/layout/item_message_image.xml @@ -9,11 +9,12 @@ android:id="@+id/imageMessage" android:layout_width="0dp" android:layout_height="wrap_content" - android:scaleType="centerCrop" - android:padding="8dp" android:background="@drawable/message_background" - app:layout_constraintTop_toTopOf="parent" + android:padding="8dp" + android:scaleType="centerCrop" app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" app:layout_constraintWidth_default="wrap" />