From bee652834f90fd8abd46b5adcf30adcc587984c2 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 3 Apr 2020 14:04:22 -0300 Subject: [wallet] add detail page for withdrawal event in history Also make history accessible by tapping the balance --- .../src/main/res/layout/fragment_history_event.xml | 160 +++++++++++++++++++++ wallet/src/main/res/layout/history_payment.xml | 24 ++-- wallet/src/main/res/layout/history_receive.xml | 43 ++---- wallet/src/main/res/layout/history_row.xml | 11 +- wallet/src/main/res/layout/list_item_balance.xml | 1 + 5 files changed, 195 insertions(+), 44 deletions(-) create mode 100644 wallet/src/main/res/layout/fragment_history_event.xml (limited to 'wallet/src/main/res/layout') diff --git a/wallet/src/main/res/layout/fragment_history_event.xml b/wallet/src/main/res/layout/fragment_history_event.xml new file mode 100644 index 0000000..4224093 --- /dev/null +++ b/wallet/src/main/res/layout/fragment_history_event.xml @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wallet/src/main/res/layout/history_payment.xml b/wallet/src/main/res/layout/history_payment.xml index 3839038..33cb676 100644 --- a/wallet/src/main/res/layout/history_payment.xml +++ b/wallet/src/main/res/layout/history_payment.xml @@ -19,11 +19,11 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="8dp" - android:background="?attr/selectableItemBackground"> + android:background="?attr/selectableItemBackground" + android:paddingStart="16dp" + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp"> + tools:ignore="ContentDescription" + tools:src="@drawable/ic_cash_usd_outline" /> + tools:text="@string/history_event_payment_sent" /> + tools:text="Lots of books with very long titles" /> + android:background="?attr/selectableItemBackground" + android:paddingStart="16dp" + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp"> - - - - + app:layout_constraintVertical_bias="0.0" + tools:text="exchange.taler.quite-long-domain-name.org" /> diff --git a/wallet/src/main/res/layout/history_row.xml b/wallet/src/main/res/layout/history_row.xml index 2982008..5eac44b 100644 --- a/wallet/src/main/res/layout/history_row.xml +++ b/wallet/src/main/res/layout/history_row.xml @@ -19,8 +19,11 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_margin="15dp" - android:background="?attr/selectableItemBackground"> + android:background="?attr/selectableItemBackground" + android:paddingStart="16dp" + android:paddingTop="8dp" + android:paddingEnd="16dp" + android:paddingBottom="8dp">