From 7ff77f7353876eb2be6cd48add929ca002cef89b Mon Sep 17 00:00:00 2001 From: pokkst Date: Thu, 22 Sep 2022 18:20:50 -0500 Subject: [PATCH] Fix selected value textview issues --- .../wallet/fragment/dialog/SendBottomSheetDialog.java | 2 ++ app/src/main/res/layout/send_bottom_sheet_dialog.xml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/mynero/wallet/fragment/dialog/SendBottomSheetDialog.java b/app/src/main/java/net/mynero/wallet/fragment/dialog/SendBottomSheetDialog.java index 59b6933..06cd9b0 100644 --- a/app/src/main/java/net/mynero/wallet/fragment/dialog/SendBottomSheetDialog.java +++ b/app/src/main/java/net/mynero/wallet/fragment/dialog/SendBottomSheetDialog.java @@ -292,6 +292,7 @@ public class SendBottomSheetDialog extends BottomSheetDialogFragment { feeTextView.setVisibility(View.VISIBLE); addressTextView.setVisibility(View.VISIBLE); amountTextView.setVisibility(View.VISIBLE); + selectedUtxosValueTextView.setVisibility(View.GONE); feeRadioGroup.setVisibility(View.GONE); feeRadioGroupLabelTextView.setVisibility(View.GONE); } else { @@ -306,6 +307,7 @@ public class SendBottomSheetDialog extends BottomSheetDialogFragment { feeTextView.setVisibility(View.GONE); addressTextView.setVisibility(View.GONE); amountTextView.setVisibility(View.GONE); + selectedUtxosValueTextView.setVisibility(View.VISIBLE); feeRadioGroup.setVisibility(View.VISIBLE); feeRadioGroupLabelTextView.setVisibility(View.VISIBLE); } diff --git a/app/src/main/res/layout/send_bottom_sheet_dialog.xml b/app/src/main/res/layout/send_bottom_sheet_dialog.xml index 5274a74..69963d4 100644 --- a/app/src/main/res/layout/send_bottom_sheet_dialog.xml +++ b/app/src/main/res/layout/send_bottom_sheet_dialog.xml @@ -17,11 +17,10 @@ android:id="@+id/send_monero_textview" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp" android:text="@string/send_monero" android:textSize="32sp" android:textStyle="bold" - app:layout_constraintBottom_toTopOf="@id/address_edittext" + app:layout_constraintBottom_toTopOf="@id/selected_utxos_value_textview" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -29,9 +28,9 @@ android:id="@+id/selected_utxos_value_textview" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp" android:text="@string/selected_utxos_value" android:textSize="16sp" + android:visibility="gone" app:layout_constraintBottom_toTopOf="@id/address_edittext" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -40,6 +39,7 @@ android:id="@+id/address_edittext" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginTop="16dp" android:layout_marginBottom="16dp" android:background="@drawable/edittext_bg" android:ellipsize="middle"