From e74f39ee86f32b4e0324405af1f0c7be061fb372 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 12 May 2020 15:26:44 -0300 Subject: [wallet] separate history and transactions UI The history with its JSON payload is only shown in dev mode while the transactions are prepared to move to the new API. --- wallet/src/main/res/drawable/ic_history.xml | 9 +++ .../src/main/res/layout/fragment_transactions.xml | 2 +- wallet/src/main/res/layout/list_item_history.xml | 75 ++++++++++++++++++++++ .../src/main/res/layout/list_item_transaction.xml | 75 ---------------------- wallet/src/main/res/menu/activity_main_drawer.xml | 27 ++++++-- wallet/src/main/res/navigation/nav_graph.xml | 10 +++ wallet/src/main/res/values/strings.xml | 1 + 7 files changed, 118 insertions(+), 81 deletions(-) create mode 100644 wallet/src/main/res/drawable/ic_history.xml create mode 100644 wallet/src/main/res/layout/list_item_history.xml delete mode 100644 wallet/src/main/res/layout/list_item_transaction.xml (limited to 'wallet/src/main/res') diff --git a/wallet/src/main/res/drawable/ic_history.xml b/wallet/src/main/res/drawable/ic_history.xml new file mode 100644 index 0000000..d9f75ea --- /dev/null +++ b/wallet/src/main/res/drawable/ic_history.xml @@ -0,0 +1,9 @@ + + + diff --git a/wallet/src/main/res/layout/fragment_transactions.xml b/wallet/src/main/res/layout/fragment_transactions.xml index aaf638c..547da24 100644 --- a/wallet/src/main/res/layout/fragment_transactions.xml +++ b/wallet/src/main/res/layout/fragment_transactions.xml @@ -27,7 +27,7 @@ android:scrollbars="vertical" android:visibility="invisible" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" - tools:listitem="@layout/list_item_transaction" + tools:listitem="@layout/list_item_history" tools:visibility="visible" /> + + + + + + + + + + + + diff --git a/wallet/src/main/res/layout/list_item_transaction.xml b/wallet/src/main/res/layout/list_item_transaction.xml deleted file mode 100644 index 2fabe1d..0000000 --- a/wallet/src/main/res/layout/list_item_transaction.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - diff --git a/wallet/src/main/res/menu/activity_main_drawer.xml b/wallet/src/main/res/menu/activity_main_drawer.xml index 896ff69..62abc32 100644 --- a/wallet/src/main/res/menu/activity_main_drawer.xml +++ b/wallet/src/main/res/menu/activity_main_drawer.xml @@ -18,7 +18,9 @@ xmlns:tools="http://schemas.android.com/tools" tools:showIn="@layout/activity_main"> - + - + + + + + + + + + diff --git a/wallet/src/main/res/navigation/nav_graph.xml b/wallet/src/main/res/navigation/nav_graph.xml index f8d515e..8e717c1 100644 --- a/wallet/src/main/res/navigation/nav_graph.xml +++ b/wallet/src/main/res/navigation/nav_graph.xml @@ -128,6 +128,12 @@ android:label="@string/pending_operations_title" tools:layout="@layout/fragment_pending_operations" /> + + + + diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml index a28545f..56ff2ef 100644 --- a/wallet/src/main/res/values/strings.xml +++ b/wallet/src/main/res/values/strings.xml @@ -40,6 +40,7 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card Withdraw Digital Cash Exchange\'s Terms of Service Exchange Fees + Event History Error Go Back -- cgit v1.2.3