From 7a357634500e54901996dea344a65f6b4cd82dd4 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 12 Sep 2020 23:22:16 +0200 Subject: [PATCH] Limiting fields to exactly one line --- .../src/main/res/layout/list_item_bank_info.xml | 4 ++++ .../src/main/res/layout/list_item_remittee.xml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ui/BankingAndroidApp/src/main/res/layout/list_item_bank_info.xml b/ui/BankingAndroidApp/src/main/res/layout/list_item_bank_info.xml index c94a8ea5..fe274dd2 100644 --- a/ui/BankingAndroidApp/src/main/res/layout/list_item_bank_info.xml +++ b/ui/BankingAndroidApp/src/main/res/layout/list_item_bank_info.xml @@ -41,6 +41,8 @@ android:layout_alignParentRight="true" android:layout_alignParentEnd="true" android:layout_above="@+id/txtvwBankCode" + android:lines="1" + android:ellipsize="end" style="@style/TextAppearance.AppCompat.Medium" android:gravity="center_vertical" android:textSize="@dimen/list_item_bank_info_bank_name_text_size" @@ -71,6 +73,8 @@ android:layout_alignTop="@id/txtvwBankCode" android:layout_alignBottom="@id/txtvwBankCode" android:gravity="center_vertical" + android:lines="1" + android:ellipsize="end" style="@style/TextAppearance.AppCompat.Small" android:textColor="@color/textColorSecondary" /> diff --git a/ui/BankingAndroidApp/src/main/res/layout/list_item_remittee.xml b/ui/BankingAndroidApp/src/main/res/layout/list_item_remittee.xml index d2919517..8f7acb4f 100644 --- a/ui/BankingAndroidApp/src/main/res/layout/list_item_remittee.xml +++ b/ui/BankingAndroidApp/src/main/res/layout/list_item_remittee.xml @@ -13,6 +13,8 @@ android:layout_height="wrap_content" style="@style/TextAppearance.AppCompat.Medium" android:gravity="center_vertical" + android:lines="1" + android:ellipsize="end" android:textSize="@dimen/list_item_bank_info_bank_name_text_size" android:textColor="@color/textColorPrimary" /> @@ -23,6 +25,8 @@ android:layout_height="wrap_content" android:layout_marginTop="@dimen/list_item_remittee_space_between_fields" android:gravity="center_vertical" + android:lines="1" + android:ellipsize="end" style="@style/TextAppearance.AppCompat.Small" android:textColor="@color/textColorSecondary" />