From 2bf14d3c6288e41f355f22e7e24d40b08341c56e Mon Sep 17 00:00:00 2001 From: Distopico Vegan Date: Sat, 18 May 2019 10:53:07 -0500 Subject: [PATCH] set ellipsize in normal view --- app/src/main/res/layout/item_message_compact.xml | 3 ++- app/src/main/res/layout/item_message_normal.xml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/item_message_compact.xml b/app/src/main/res/layout/item_message_compact.xml index 6d471591..d4b653e6 100644 --- a/app/src/main/res/layout/item_message_compact.xml +++ b/app/src/main/res/layout/item_message_compact.xml @@ -66,8 +66,9 @@ android:layout_marginStart="@dimen/margin_sm" android:layout_marginEnd="20dp" android:fontFamily="sans-serif-light" - android:text="@string/default_from" + android:minLines="1" android:ellipsize="end" + android:text="@string/default_from" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toStartOf="@id/tvTime" app:layout_constraintStart_toEndOf="@id/ivAvatar" diff --git a/app/src/main/res/layout/item_message_normal.xml b/app/src/main/res/layout/item_message_normal.xml index 85b70d8f..adbabdc5 100644 --- a/app/src/main/res/layout/item_message_normal.xml +++ b/app/src/main/res/layout/item_message_normal.xml @@ -64,6 +64,7 @@ android:layout_marginStart="6dp" android:fontFamily="sans-serif-light" android:minLines="1" + android:ellipsize="end" android:text="@string/default_subject" android:textAppearance="@style/TextAppearance.AppCompat.Small" app:layout_constraintEnd_toStartOf="@id/paddingEnd" @@ -77,6 +78,8 @@ android:layout_marginStart="6dp" android:layout_marginEnd="6dp" android:fontFamily="sans-serif-light" + android:minLines="1" + android:ellipsize="end" android:text="@string/default_from" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toStartOf="@+id/tvTime"