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 + wallet/src/main/res/menu/history_event.xml | 23 +++ wallet/src/main/res/navigation/nav_graph.xml | 14 +- wallet/src/main/res/values/strings.xml | 10 ++ wallet/src/main/res/values/styles.xml | 2 +- 9 files changed, 242 insertions(+), 46 deletions(-) create mode 100644 wallet/src/main/res/layout/fragment_history_event.xml create mode 100644 wallet/src/main/res/menu/history_event.xml (limited to 'wallet/src/main/res') 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"> + + + + diff --git a/wallet/src/main/res/navigation/nav_graph.xml b/wallet/src/main/res/navigation/nav_graph.xml index 9875b8a..1ab9666 100644 --- a/wallet/src/main/res/navigation/nav_graph.xml +++ b/wallet/src/main/res/navigation/nav_graph.xml @@ -57,11 +57,23 @@ android:name="net.taler.wallet.Settings" android:label="Settings" tools:layout="@layout/fragment_settings" /> + + tools:layout="@layout/fragment_show_history"> + + + + + Balances +%s -%s + Chosen Amount inbound There is no digital cash in your wallet.\n\nYou can get test money from the demo bank:\n\nhttps://bank.demo.taler.net @@ -49,6 +50,9 @@ Show All Reload History The wallet history is empty + Could not load history + Transaction + Show JSON Exchange Added @@ -64,6 +68,12 @@ Purchase Redirected Refund Obtained change + because of manual request + for payment + for refund + to abort payment + to recoup funds + because of restoring from backup Unknown Event +%s payment fee diff --git a/wallet/src/main/res/values/styles.xml b/wallet/src/main/res/values/styles.xml index 83f3e3a..c3e18a6 100644 --- a/wallet/src/main/res/values/styles.xml +++ b/wallet/src/main/res/values/styles.xml @@ -34,7 +34,7 @@ -- cgit v1.2.3