From 24dba53c5f59d5f20a020f925d4733dc1b068eb0 Mon Sep 17 00:00:00 2001 From: dtvv Date: Fri, 12 Oct 2018 02:55:09 -0500 Subject: [PATCH] -Change the buttons style to the buttons to material one in the create_seed.xml and java source -Add the new buttons push animation to the buttons in the fragment_accounts_settings.xml and java source --- .../crystalwallet/activities/CreateSeedActivity.kt | 10 ++++++++++ app/src/main/res/layout/create_seed.xml | 4 +--- 2 files changed, 11 insertions(+), 3 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 fdeaf06..a4f9c67 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/CreateSeedActivity.kt +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/CreateSeedActivity.kt @@ -4,11 +4,13 @@ import android.content.Context import android.content.Intent import android.os.Bundle import android.text.Editable +import android.view.View import android.view.inputmethod.InputMethodManager import android.widget.Toast import butterknife.ButterKnife import butterknife.OnClick import butterknife.OnTextChanged +import com.thekhaeng.pushdownanim.PushDownAnim import com.vincent.filepicker.ToastUtil import cy.agorise.crystalwallet.R import cy.agorise.crystalwallet.dialogs.material.* @@ -51,6 +53,14 @@ class CreateSeedActivity : CustomActivity() { this.fieldsValidator.add(tietPinConfirmation) this.fieldsValidator.add(tietAccountName) + /* + * Integration of library with button efects + * */ + PushDownAnim.setPushDownAnimTo(btnCancel) + .setOnClickListener { cancel() } + PushDownAnim.setPushDownAnimTo(btnCreate) + .setOnClickListener { createSeed() } + /* * Validations listener * */ diff --git a/app/src/main/res/layout/create_seed.xml b/app/src/main/res/layout/create_seed.xml index d320db4..43da373 100644 --- a/app/src/main/res/layout/create_seed.xml +++ b/app/src/main/res/layout/create_seed.xml @@ -88,12 +88,11 @@