From 035b7b3d3353c048baba57e55a05672e0adffe81 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 9 Sep 2020 16:14:19 +0200 Subject: [PATCH] Set transactions label to max 1 line and usage to max 2 lines --- .../src/main/res/layout/list_item_account_transaction.xml | 4 ++++ .../ui/views/listitems/AccountTransactionListItem.swift | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ui/BankingAndroidApp/src/main/res/layout/list_item_account_transaction.xml b/ui/BankingAndroidApp/src/main/res/layout/list_item_account_transaction.xml index 3b7d0169..87ff741f 100644 --- a/ui/BankingAndroidApp/src/main/res/layout/list_item_account_transaction.xml +++ b/ui/BankingAndroidApp/src/main/res/layout/list_item_account_transaction.xml @@ -28,6 +28,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/list_item_account_transaction_space_between_label_and_usage" + android:lines="1" + android:ellipsize="end" android:textSize="@dimen/list_item_account_transaction_label_text_size" android:textStyle="bold" /> @@ -36,6 +38,8 @@ android:id="@+id/txtvwUsage" android:layout_width="match_parent" android:layout_height="wrap_content" + android:lines="2" + android:ellipsize="end" android:textSize="@dimen/list_item_account_transaction_usage_text_size" /> diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AccountTransactionListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AccountTransactionListItem.swift index cbd35b27..4249945f 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AccountTransactionListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/listitems/AccountTransactionListItem.swift @@ -33,11 +33,13 @@ struct AccountTransactionListItem: View { VStack(alignment: .leading) { Text(getTransactionLabel(transaction)) .font(.headline) + .lineLimit(1) .frame(height: 20) Text(transaction.usage) .styleAsDetail() .padding(.top, 4) + .lineLimit(2) .frame(height: 46, alignment: .center) }