From 5a8a33f39e956359e49c1cf40a51f2605dabfbe2 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 31 Aug 2022 18:04:47 +0200 Subject: [PATCH] end-align timestamps of messages Signed-off-by: Andy Scherzinger --- .../res/layout/item_custom_incoming_preview_message.xml | 1 + .../main/res/layout/item_custom_incoming_text_message.xml | 6 +++++- .../res/layout/item_custom_outcoming_location_message.xml | 1 + .../res/layout/item_custom_outcoming_preview_message.xml | 3 ++- .../main/res/layout/item_custom_outcoming_text_message.xml | 3 +++ app/src/main/res/layout/item_system_message.xml | 4 ++-- 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/item_custom_incoming_preview_message.xml b/app/src/main/res/layout/item_custom_incoming_preview_message.xml index 7cef2baf2..6b3cb435d 100644 --- a/app/src/main/res/layout/item_custom_incoming_preview_message.xml +++ b/app/src/main/res/layout/item_custom_incoming_preview_message.xml @@ -172,6 +172,7 @@ android:layout_marginStart="8dp" android:layout_marginEnd="2dp" android:alpha="0.6" + android:gravity="end" android:textColor="@color/no_emphasis_text" app:layout_alignSelf="center" tools:text="12:38" /> diff --git a/app/src/main/res/layout/item_custom_incoming_text_message.xml b/app/src/main/res/layout/item_custom_incoming_text_message.xml index defaf021c..9b548b9fb 100644 --- a/app/src/main/res/layout/item_custom_incoming_text_message.xml +++ b/app/src/main/res/layout/item_custom_incoming_text_message.xml @@ -85,9 +85,13 @@ android:layout_below="@id/messageText" android:layout_marginStart="8dp" android:alpha="0.6" + android:gravity="end" android:textColor="@color/no_emphasis_text" android:textIsSelectable="false" - app:layout_alignSelf="center" /> + app:layout_alignSelf="center" + app:layout_flexGrow="1" + app:layout_wrapBefore="false" + tools:text="12:38" /> diff --git a/app/src/main/res/layout/item_custom_outcoming_preview_message.xml b/app/src/main/res/layout/item_custom_outcoming_preview_message.xml index 9293eaf9e..165e1c80c 100644 --- a/app/src/main/res/layout/item_custom_outcoming_preview_message.xml +++ b/app/src/main/res/layout/item_custom_outcoming_preview_message.xml @@ -152,7 +152,7 @@ app:layout_alignSelf="flex_start" app:layout_flexGrow="1" app:layout_wrapBefore="true" - tools:text="Message" /> + tools:text="A simple message" /> diff --git a/app/src/main/res/layout/item_custom_outcoming_text_message.xml b/app/src/main/res/layout/item_custom_outcoming_text_message.xml index fc10826d5..139b1b97c 100644 --- a/app/src/main/res/layout/item_custom_outcoming_text_message.xml +++ b/app/src/main/res/layout/item_custom_outcoming_text_message.xml @@ -64,9 +64,12 @@ android:layout_below="@id/messageText" android:layout_marginStart="8dp" android:alpha="0.6" + android:gravity="end" android:textColor="@color/no_emphasis_text" android:textIsSelectable="false" app:layout_alignSelf="center" + app:layout_flexGrow="1" + app:layout_wrapBefore="false" tools:text="10:35" />