From 584fc7ca812ff8bf45e8b3933a51d684b7d81355 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 10 Apr 2020 22:44:28 +0200 Subject: [PATCH] adding a contact avatar at the main screen --- app/src/main/res/layout/item_message.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/item_message.xml b/app/src/main/res/layout/item_message.xml index 0df8520a..e0d3611d 100644 --- a/app/src/main/res/layout/item_message.xml +++ b/app/src/main/res/layout/item_message.xml @@ -13,14 +13,27 @@ android:id="@+id/message_holder" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="@dimen/activity_margin"> + android:paddingTop="@dimen/activity_margin" + android:paddingBottom="@dimen/activity_margin"> + + @@ -29,8 +42,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/message_address" + android:layout_toEndOf="@+id/message_image" android:ellipsize="end" android:maxLines="1" + android:paddingEnd="@dimen/activity_margin" android:textSize="@dimen/normal_text_size" tools:text="Hey buddy!" /> @@ -40,6 +55,7 @@ android:layout_height="wrap_content" android:layout_below="@+id/message_body_short" android:layout_marginTop="@dimen/tiny_margin" + android:layout_toEndOf="@+id/message_image" android:alpha="0.4" android:textSize="@dimen/smaller_text_size" tools:text="13:30" />