diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java index 070d39b..4c28d12 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java @@ -165,6 +165,14 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat return dialog; } + @Override + public void onResume() { + super.onResume(); + + // Force dialog fragment to use the full width of the screen + getDialog().getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); + } + /*public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ View view = inflater.inflate(R.layout.send_transaction, container, false); diff --git a/app/src/main/res/layout/send_transaction.xml b/app/src/main/res/layout/send_transaction.xml index 558906e..cf22d2f 100644 --- a/app/src/main/res/layout/send_transaction.xml +++ b/app/src/main/res/layout/send_transaction.xml @@ -2,10 +2,8 @@ + android:layout_height="wrap_content"> @@ -203,7 +201,7 @@ android:layout_marginBottom="165dp" android:layout_marginStart="165dp" app:backgroundTint="@color/send_strong_orange" - android:src="@drawable/ic_close" + app:srcCompat="@drawable/ic_close" app:layout_constraintBottom_toBottomOf="@+id/ivCamera" app:layout_constraintStart_toStartOf="@+id/ivCamera" /> @@ -222,7 +220,7 @@ android:layout_height="90dp" android:layout_marginTop="24dp" app:backgroundTint="@color/send_strong_orange" - android:src="@drawable/ic_arrow_forward" + app:srcCompat="@drawable/ic_arrow_forward" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@+id/viewSend" />