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/layout/fragment_transaction_withdrawal.xml | |
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/layout/fragment_transaction_withdrawal.xml')
-rw-r--r-- | wallet/src/main/res/layout/fragment_transaction_withdrawal.xml | 53 |
1 files changed, 19 insertions, 34 deletions
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" /> |