-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:
parent
09ce271c30
commit
24dba53c5f
2 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
* */
|
||||
|
|
|
@ -88,12 +88,11 @@
|
|||
<Button
|
||||
android:id="@+id/btnCancel"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="57dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:theme="@style/RedButton"
|
||||
android:background="@color/redColor"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="@color/white"
|
||||
android:textStyle="bold"
|
||||
|
@ -107,7 +106,6 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:background="@color/colorPrimary"
|
||||
android:padding="10dp"
|
||||
android:theme="@style/BlueButton"
|
||||
android:text="@string/create_wallet"
|
||||
|
|
Loading…
Reference in a new issue