diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-09-12 20:33:29 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-09-12 20:33:29 +0200 |
commit | 66ce3f919387cfeb60f48ea204daf74fc242dc61 (patch) | |
tree | 37c2be1eb84365bdf1705f663867692d9e83b0e1 /src | |
parent | 1af135cbcab70a7216170479ca9bff407e8b4a8f (diff) |
fixed own avatar not being square in message view
Diffstat (limited to 'src')
-rw-r--r-- | src/main/res/layout/message_sent.xml | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/src/main/res/layout/message_sent.xml b/src/main/res/layout/message_sent.xml index 63ce65b76..2526e4dd2 100644 --- a/src/main/res/layout/message_sent.xml +++ b/src/main/res/layout/message_sent.xml @@ -9,17 +9,29 @@ android:paddingRight="8dp" android:paddingTop="3dp"> - <com.makeramen.roundedimageview.RoundedImageView - android:id="@+id/message_photo" - android:layout_width="48dp" - android:layout_height="48dp" + <LinearLayout + android:id="@+id/message_photo_box" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" - android:scaleType="fitXY" - app:riv_border_color="?attr/color_border" - app:riv_border_width="1dp" - app:riv_corner_radius="@dimen/rounded_image_border" /> + 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_border_color="?attr/color_border" + app:riv_border_width="1dp" + app:riv_corner_radius="@dimen/rounded_image_border" /> + + <View + android:id="@+id/placeholder" + android:layout_width="48dp" + android:layout_height="3dp" /> + </LinearLayout> <LinearLayout android:id="@+id/message_box" @@ -28,8 +40,8 @@ android:layout_alignParentBottom="true" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" - android:layout_toLeftOf="@+id/message_photo" - android:layout_toStartOf="@+id/message_photo" + android:layout_toLeftOf="@+id/message_photo_box" + android:layout_toStartOf="@+id/message_photo_box" android:background="@drawable/message_bubble_sent_blue" android:longClickable="true" android:minHeight="48dp"> |