Change summary
src/main/res/layout/item_message_sent.xml | 24 ++++++++----------------
1 file changed, 8 insertions(+), 16 deletions(-)
Detailed changes
@@ -9,23 +9,15 @@
android:paddingHorizontal="8dp"
android:paddingVertical="4dp">
-
- <LinearLayout
- android:id="@+id/message_photo_box"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ <com.makeramen.roundedimageview.RoundedImageView
+ android:id="@+id/message_photo"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
- android:layout_marginStart="8dp"
- android:orientation="vertical">
-
- <com.makeramen.roundedimageview.RoundedImageView
- android:id="@+id/message_photo"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:scaleType="fitXY"
- app:riv_corner_radius="6dp" />
- </LinearLayout>
+ android:layout_marginStart="6dp"
+ android:scaleType="fitXY"
+ app:riv_corner_radius="8dp" />
<LinearLayout
@@ -33,7 +25,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- android:layout_toStartOf="@+id/message_photo_box"
+ android:layout_toStartOf="@+id/message_photo"
android:background="@drawable/background_message_bubble"
android:backgroundTint="?colorSecondaryContainer"
android:longClickable="true"