From 2c5661c587d1e2351ba3f4f4319c95e73669b99b Mon Sep 17 00:00:00 2001 From: dtvv Date: Mon, 24 Sep 2018 15:06:39 -0500 Subject: [PATCH] Back to previous version of the send transaction button --- .../fragments/SendTransactionFragment.java | 8 +- app/src/main/res/layout/send_transaction.xml | 494 +++++++++--------- 2 files changed, 243 insertions(+), 259 deletions(-) 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 ae2f4fb..3055135 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java @@ -97,8 +97,8 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat Spinner spAsset; @BindView(R.id.tvAssetError) TextView tvAssetError; - @BindView(R.id.scrollMain) - ScrollView scrollMain; + //@BindView(R.id.scrollMain) + //ScrollView scrollMain; @BindView(R.id.etAmount) EditText etAmount; @BindView(R.id.tvAmountError) @@ -167,7 +167,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat /* * Detet scroll changes * */ - scrollMain.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() { + /*scrollMain.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() { @Override public void onScrollChanged() { @@ -206,7 +206,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat viewSend.animate().y(600); } } - }); + });*/ this.cryptoNetAccountId = getArguments().getLong("CRYPTO_NET_ACCOUNT_ID",-1); diff --git a/app/src/main/res/layout/send_transaction.xml b/app/src/main/res/layout/send_transaction.xml index 72728c9..028d967 100644 --- a/app/src/main/res/layout/send_transaction.xml +++ b/app/src/main/res/layout/send_transaction.xml @@ -1,271 +1,255 @@ - + android:layout_height="wrap_content" + android:background="@color/white"> - - - + android:paddingBottom="24dp"> - + + + android:layout_marginStart="24dp" + android:layout_marginTop="24dp" + android:text="@string/title_capital" + android:textColor="@color/white" + android:textSize="20sp" + android:textStyle="bold" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:id="@+id/btnCancel" + android:layout_width="20dp" + android:layout_height="26dp" + android:background="@drawable/ic_close" + android:text="" + android:textSize="18sp" + android:textStyle="bold" /> - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file