From 046e21d7250b8ec359fdc94121d3dc36e6da0e51 Mon Sep 17 00:00:00 2001 From: dtvv Date: Fri, 12 Oct 2018 04:08:44 -0500 Subject: [PATCH] =?UTF-8?q?-Include=20layout=20in=20the=20buttons=20to=20f?= =?UTF-8?q?ix=20orientaci=C3=B3n=20and=20correct=20size=20with=20the=20new?= =?UTF-8?q?=20properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activities/CreateSeedActivity.kt | 4 +- app/src/main/res/layout/create_seed.xml | 66 +++++++++++-------- 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/CreateSeedActivity.kt b/app/src/main/java/cy/agorise/crystalwallet/activities/CreateSeedActivity.kt index a4f9c67..4b5f6fc 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/CreateSeedActivity.kt +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/CreateSeedActivity.kt @@ -320,7 +320,7 @@ class CreateSeedActivity : CustomActivity() { * */ private fun enableCreate() { runOnUiThread(Runnable { - btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary)) + //btnCreate?.setBackgroundColor(resources.getColor(R.color.colorPrimary)) btnCreate?.setEnabled(true) }) } @@ -331,7 +331,7 @@ class CreateSeedActivity : CustomActivity() { private fun disableCreate() { runOnUiThread(Runnable { btnCreate?.setEnabled(false) - btnCreate?.setBackground(resources.getDrawable(R.drawable.disable_style)) + //btnCreate?.setBackground(resources.getDrawable(R.drawable.disable_style)) }) } } \ No newline at end of file diff --git a/app/src/main/res/layout/create_seed.xml b/app/src/main/res/layout/create_seed.xml index 43da373..977b3c9 100644 --- a/app/src/main/res/layout/create_seed.xml +++ b/app/src/main/res/layout/create_seed.xml @@ -68,7 +68,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="8dp" - app:layout_constraintBottom_toTopOf="@+id/btnCancel" + app:layout_constraintBottom_toTopOf="@+id/layoutBtns" app:layout_constraintTop_toBottomOf="@+id/tilPinConfirmation" app:layout_constraintStart_toStartOf="@id/tilPinConfirmation" app:layout_constraintEnd_toEndOf="@id/tilPinConfirmation"> @@ -85,38 +85,48 @@ -