commit 878616ad4f1d77351e5b9893d03360d323e10b72
parent dc8cdc0fa2a04dea3bf5168fe84860000d0bfe28
Author: Iván Ávalos <avalos@disroot.org>
Date: Tue, 17 Jan 2023 13:08:28 -0600
[wallet] Top align transaction layouts for consistency
Diffstat:
2 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/wallet/src/main/res/layout/fragment_transaction_payment.xml b/wallet/src/main/res/layout/fragment_transaction_payment.xml
@@ -33,14 +33,12 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_chainStyle="packed"
tools:text="23 March 2020 23:42pm" />
<TextView
android:id="@+id/amountPaidWithFeesLabel"
style="@style/TransactionLabel"
android:text="@string/transaction_paid"
- app:layout_constraintBottom_toTopOf="@+id/amountPaidWithFeesView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/timeView" />
@@ -49,7 +47,6 @@
android:id="@+id/amountPaidWithFeesView"
style="@style/TransactionContent"
android:textColor="@color/red"
- app:layout_constraintBottom_toTopOf="@+id/orderAmountLabel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/amountPaidWithFeesLabel"
@@ -59,7 +56,6 @@
android:id="@+id/orderAmountLabel"
style="@style/TransactionLabel"
android:text="@string/transaction_order_total"
- app:layout_constraintBottom_toTopOf="@+id/orderAmountView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/amountPaidWithFeesView" />
@@ -67,7 +63,6 @@
<TextView
android:id="@+id/orderAmountView"
style="@style/TransactionContent"
- app:layout_constraintBottom_toTopOf="@+id/feeLabel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/orderAmountLabel"
@@ -77,7 +72,6 @@
android:id="@+id/feeLabel"
style="@style/TransactionLabel"
android:text="@string/withdraw_fees"
- app:layout_constraintBottom_toTopOf="@+id/feeView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/orderAmountView" />
@@ -86,7 +80,6 @@
android:id="@+id/feeView"
style="@style/TransactionContent"
android:textColor="@color/red"
- app:layout_constraintBottom_toTopOf="@+id/orderSummaryLabel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/feeLabel"
@@ -96,7 +89,6 @@
android:id="@+id/orderSummaryLabel"
style="@style/TransactionLabel"
android:text="@string/transaction_order"
- app:layout_constraintBottom_toTopOf="@+id/orderSummaryView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/feeView" />
@@ -105,7 +97,6 @@
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"
app:layout_constraintTop_toBottomOf="@+id/orderSummaryLabel"
@@ -116,7 +107,6 @@
style="@style/TransactionLabel"
android:layout_marginBottom="16dp"
android:text="@string/transaction_order_id"
- app:layout_constraintBottom_toTopOf="@+id/deleteButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/orderSummaryView" />
@@ -125,10 +115,10 @@
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"
- app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/orderIdView" />
diff --git a/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml b/wallet/src/main/res/layout/fragment_transaction_withdrawal.xml
@@ -33,7 +33,6 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_chainStyle="packed"
tools:text="23 March 2020 23:42pm" />
<TextView
@@ -145,7 +144,6 @@
android:text="@string/transactions_delete"
app:backgroundTint="@color/red"
app:icon="@drawable/ic_delete"
- app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/exchangeView" />