diff options
author | Torsten Grote <t@grobox.de> | 2020-05-14 15:15:50 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-05-15 14:26:42 -0300 |
commit | 7f36a54e5781c56d538f007f5565d79e1a2285fc (patch) | |
tree | 592ff619c55fc0b61dfe1905a31f4c2f1a1e9909 /wallet/src/main/res | |
parent | 69093aa9055da501fd14103ac772d730850cb7b4 (diff) | |
download | taler-android-7f36a54e5781c56d538f007f5565d79e1a2285fc.tar.gz taler-android-7f36a54e5781c56d538f007f5565d79e1a2285fc.tar.bz2 taler-android-7f36a54e5781c56d538f007f5565d79e1a2285fc.zip |
[wallet] add clickable actions to transaction details screen
Bank confirmation can be reached from withdrawal screen and
digital fulfillment (http URI) from payment screen.
Diffstat (limited to 'wallet/src/main/res')
-rw-r--r-- | wallet/src/main/res/layout/fragment_transaction_payment.xml | 2 | ||||
-rw-r--r-- | wallet/src/main/res/layout/fragment_transaction_withdrawal.xml | 53 | ||||
-rw-r--r-- | wallet/src/main/res/values/strings.xml | 5 |
3 files changed, 25 insertions, 35 deletions
diff --git a/wallet/src/main/res/layout/fragment_transaction_payment.xml b/wallet/src/main/res/layout/fragment_transaction_payment.xml index 3f17464..20ba161 100644 --- a/wallet/src/main/res/layout/fragment_transaction_payment.xml +++ b/wallet/src/main/res/layout/fragment_transaction_payment.xml @@ -104,6 +104,7 @@ <TextView android:id="@+id/orderSummaryView" style="@style/TransactionContent" + android:textColor="?android:textColorPrimary" app:layout_constraintBottom_toTopOf="@+id/orderIdView" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -113,6 +114,7 @@ <TextView android:id="@+id/orderIdView" style="@style/TransactionLabel" + android:layout_marginBottom="16dp" android:text="@string/transaction_order_id" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" diff --git a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml index 5d30fcf..5a1e82f 100644 --- a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml +++ b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml @@ -47,40 +47,39 @@ <TextView android:id="@+id/effectiveAmountView" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" - android:gravity="center" + style="@style/TransactionContent" android:textColor="@color/green" - android:textSize="24sp" - app:layout_constraintBottom_toTopOf="@+id/chosenAmountLabel" + app:layout_constraintBottom_toTopOf="@+id/confirmWithdrawalButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/effectiveAmountLabel" tools:text="23.42 TESTKUDOS" /> + <Button + android:id="@+id/confirmWithdrawalButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_account_balance" + android:drawableTint="?attr/colorOnPrimarySurface" + android:text="@string/withdraw_button_confirm_bank" + app:layout_constraintBottom_toTopOf="@+id/chosenAmountLabel" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/effectiveAmountView" + tools:ignore="RtlHardcoded" /> + <TextView android:id="@+id/chosenAmountLabel" style="@style/TransactionLabel" app:layout_constraintBottom_toTopOf="@+id/chosenAmountView" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/effectiveAmountView" + app:layout_constraintTop_toBottomOf="@+id/confirmWithdrawalButton" tools:text="@string/amount_chosen" /> <TextView android:id="@+id/chosenAmountView" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" - android:gravity="center" - android:textSize="24sp" + style="@style/TransactionContent" app:layout_constraintBottom_toTopOf="@+id/feeLabel" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -98,15 +97,8 @@ <TextView android:id="@+id/feeView" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" - android:layout_marginBottom="16dp" - android:gravity="center" + style="@style/TransactionContent" android:textColor="@color/red" - android:textSize="24sp" app:layout_constraintBottom_toTopOf="@+id/exchangeLabel" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -124,16 +116,9 @@ <TextView android:id="@+id/exchangeView" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginStart="16dp" - android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" - android:gravity="center" - android:textSize="24sp" + style="@style/TransactionContent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/exchangeLabel" tools:text="exchange.demo.taler.net" /> diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml index 58b432a..1f2d80c 100644 --- a/wallet/src/main/res/values/strings.xml +++ b/wallet/src/main/res/values/strings.xml @@ -81,7 +81,9 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card <string name="transaction_tip_accepted">Tip Accepted</string> <string name="transaction_tip_declined">Tip Declined</string> <string name="transaction_tip_from">Tip from %s</string> - <string name="transaction_refund">Refund from %s</string> + <string name="transaction_refund">Refund</string> + <string name="transaction_refund_from">Refund from %s</string> + <string name="transaction_refund_for">Refund for %s</string> <string name="transaction_pending">PENDING</string> <string name="transaction_refresh">Coin expiry change fee</string> <string name="transaction_refresh_reason_manual">because of manual request</string> @@ -110,6 +112,7 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card <string name="withdraw_fees">Fee</string> <string name="withdraw_exchange">Exchange</string> <string name="withdraw_button_confirm">Confirm Withdraw</string> + <string name="withdraw_button_confirm_bank">Confirm with bank</string> <string name="withdraw_button_tos">Review Terms</string> <string name="withdraw_error_title">Withdrawal Error</string> <string name="withdraw_error_message">Withdrawing is currently not possible. Please try again later!</string> |