-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
This commit is contained in:
dtvv 2018-10-12 02:55:09 -05:00
parent 09ce271c30
commit 24dba53c5f
2 changed files with 11 additions and 3 deletions

View file

@ -4,11 +4,13 @@ import android.content.Context
import android.content.Intent import android.content.Intent
import android.os.Bundle import android.os.Bundle
import android.text.Editable import android.text.Editable
import android.view.View
import android.view.inputmethod.InputMethodManager import android.view.inputmethod.InputMethodManager
import android.widget.Toast import android.widget.Toast
import butterknife.ButterKnife import butterknife.ButterKnife
import butterknife.OnClick import butterknife.OnClick
import butterknife.OnTextChanged import butterknife.OnTextChanged
import com.thekhaeng.pushdownanim.PushDownAnim
import com.vincent.filepicker.ToastUtil import com.vincent.filepicker.ToastUtil
import cy.agorise.crystalwallet.R import cy.agorise.crystalwallet.R
import cy.agorise.crystalwallet.dialogs.material.* import cy.agorise.crystalwallet.dialogs.material.*
@ -51,6 +53,14 @@ class CreateSeedActivity : CustomActivity() {
this.fieldsValidator.add(tietPinConfirmation) this.fieldsValidator.add(tietPinConfirmation)
this.fieldsValidator.add(tietAccountName) this.fieldsValidator.add(tietAccountName)
/*
* Integration of library with button efects
* */
PushDownAnim.setPushDownAnimTo(btnCancel)
.setOnClickListener { cancel() }
PushDownAnim.setPushDownAnimTo(btnCreate)
.setOnClickListener { createSeed() }
/* /*
* Validations listener * Validations listener
* */ * */

View file

@ -88,12 +88,11 @@
<Button <Button
android:id="@+id/btnCancel" android:id="@+id/btnCancel"
android:layout_width="140dp" android:layout_width="140dp"
android:layout_height="wrap_content" android:layout_height="57dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="28dp" android:layout_marginTop="28dp"
android:theme="@style/RedButton" android:theme="@style/RedButton"
android:background="@color/redColor"
android:text="@string/cancel" android:text="@string/cancel"
android:textColor="@color/white" android:textColor="@color/white"
android:textStyle="bold" android:textStyle="bold"
@ -107,7 +106,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:background="@color/colorPrimary"
android:padding="10dp" android:padding="10dp"
android:theme="@style/BlueButton" android:theme="@style/BlueButton"
android:text="@string/create_wallet" android:text="@string/create_wallet"