diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-01-16 22:39:18 -0600 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2023-01-17 12:05:23 -0300 |
commit | 9049e305ac376d7e04b8190c9f65f6efe24562b1 (patch) | |
tree | 581401754872dee0e03df1c541469cbd88ffc92d /wallet/src/main/res/layout | |
parent | 0bf92f7636e27da2b30f680550f3ee9eaede56ec (diff) | |
download | taler-android-9049e305ac376d7e04b8190c9f65f6efe24562b1.tar.gz taler-android-9049e305ac376d7e04b8190c9f65f6efe24562b1.tar.bz2 taler-android-9049e305ac376d7e04b8190c9f65f6efe24562b1.zip |
[wallet] Initial implementation of KYC handling
#0007566
Diffstat (limited to 'wallet/src/main/res/layout')
-rw-r--r-- | wallet/src/main/res/layout/fragment_transaction_withdrawal.xml | 19 | ||||
-rw-r--r-- | wallet/src/main/res/layout/list_item_transaction.xml | 13 |
2 files changed, 29 insertions, 3 deletions
diff --git a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml index 78d1667..783b2d9 100644 --- a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml +++ b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml @@ -62,19 +62,33 @@ android:drawableLeft="@drawable/ic_account_balance" android:text="@string/withdraw_button_confirm_bank" app:drawableTint="?attr/colorOnPrimarySurface" - app:layout_constraintBottom_toTopOf="@+id/chosenAmountLabel" + app:layout_constraintBottom_toTopOf="@+id/actionButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/effectiveAmountView" tools:ignore="RtlHardcoded" /> + <Button + android:id="@+id/actionButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginVertical="10dp" + android:backgroundTint="@color/colorAccent" + android:visibility="gone" + app:layout_constraintBottom_toTopOf="@id/chosenAmountLabel" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/confirmWithdrawalButton" + tools:text="@string/transaction_action_kyc" + tools:visibility="visible" /> + <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/confirmWithdrawalButton" + app:layout_constraintTop_toBottomOf="@+id/actionButton" tools:text="@string/amount_chosen" /> <TextView @@ -127,6 +141,7 @@ android:id="@+id/deleteButton" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginVertical="10dp" android:text="@string/transactions_delete" app:backgroundTint="@color/red" app:icon="@drawable/ic_delete" diff --git a/wallet/src/main/res/layout/list_item_transaction.xml b/wallet/src/main/res/layout/list_item_transaction.xml index 64d9045..232afb8 100644 --- a/wallet/src/main/res/layout/list_item_transaction.xml +++ b/wallet/src/main/res/layout/list_item_transaction.xml @@ -62,6 +62,17 @@ tools:text="@string/withdraw_waiting_confirm" tools:visibility="visible" /> + <com.google.android.material.button.MaterialButton + android:id="@+id/actionButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + app:backgroundTint="@color/colorAccent" + app:layout_constraintStart_toStartOf="@id/title" + app:layout_constraintTop_toBottomOf="@id/extraInfoView" + tools:text="Complete KYC" + tools:visibility="visible"/> + <TextView android:id="@+id/time" android:layout_width="0dp" @@ -72,7 +83,7 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/barrier" app:layout_constraintStart_toStartOf="@+id/title" - app:layout_constraintTop_toBottomOf="@+id/extraInfoView" + app:layout_constraintTop_toBottomOf="@+id/actionButton" tools:text="23 min ago" /> <androidx.constraintlayout.widget.Barrier |