diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-03-09 23:51:08 -0600 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2023-03-21 12:18:34 -0300 |
commit | b1a114987cec6634645f7ee2b5962a9e3131a64c (patch) | |
tree | 402046e61583b295450922dbddeecc5e81ceb5ed /wallet/src/main/res/layout | |
parent | 3ab1c7dad6e0a6a42c05c2a5c506c9807ac48b2c (diff) | |
download | taler-android-b1a114987cec6634645f7ee2b5962a9e3131a64c.tar.gz taler-android-b1a114987cec6634645f7ee2b5962a9e3131a64c.tar.bz2 taler-android-b1a114987cec6634645f7ee2b5962a9e3131a64c.zip |
[wallet] Expand JSON error in XML transaction detail fragments
bug 0007606
Diffstat (limited to 'wallet/src/main/res/layout')
-rw-r--r-- | wallet/src/main/res/layout/fragment_transaction_payment.xml | 19 | ||||
-rw-r--r-- | wallet/src/main/res/layout/fragment_transaction_withdrawal.xml | 19 |
2 files changed, 36 insertions, 2 deletions
diff --git a/wallet/src/main/res/layout/fragment_transaction_payment.xml b/wallet/src/main/res/layout/fragment_transaction_payment.xml index b57315f..5b674bd 100644 --- a/wallet/src/main/res/layout/fragment_transaction_payment.xml +++ b/wallet/src/main/res/layout/fragment_transaction_payment.xml @@ -122,11 +122,28 @@ app:backgroundTint="?colorError" app:icon="@drawable/ic_delete" app:iconTint="?colorOnError" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toTopOf="@id/showErrorButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/orderIdView" /> + <com.google.android.material.button.MaterialButton + android:id="@+id/showErrorButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginVertical="10dp" + android:visibility="gone" + android:text="@string/nav_error" + app:backgroundTint="?colorError" + app:icon="@drawable/ic_error" + android:textColor="?colorOnError" + app:iconTint="?colorOnError" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/deleteButton" + tools:visibility="visible" /> + </androidx.constraintlayout.widget.ConstraintLayout> </ScrollView> diff --git a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml index 100ddbc..87530a4 100644 --- a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml +++ b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml @@ -149,11 +149,28 @@ app:icon="@drawable/ic_delete" android:textColor="?colorOnError" app:iconTint="?colorOnError" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toTopOf="@id/showErrorButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/exchangeView" /> + <com.google.android.material.button.MaterialButton + android:id="@+id/showErrorButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginVertical="10dp" + android:visibility="gone" + android:text="@string/nav_error" + app:backgroundTint="?colorError" + app:icon="@drawable/ic_error" + android:textColor="?colorOnError" + app:iconTint="?colorOnError" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/deleteButton" + tools:visibility="visible" /> + </androidx.constraintlayout.widget.ConstraintLayout> </ScrollView> |