From 012aea807e922108d4afcc4ebbd3fa5a1c32b07e Mon Sep 17 00:00:00 2001 From: dtvv Date: Fri, 12 Oct 2018 03:09:28 -0500 Subject: [PATCH] -Add the new buttons push animation to the buttons in the activity_intro.xml and java source --- .../activities/IntroActivity.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java b/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java index 1d2d91f..7a2f75f 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java @@ -16,6 +16,8 @@ import android.view.View; import android.widget.Button; import android.widget.Toast; +import com.thekhaeng.pushdownanim.PushDownAnim; + import java.util.List; import butterknife.BindView; @@ -69,6 +71,24 @@ public class IntroActivity extends CustomActivity { ButterKnife.bind(this); + /* + * Integration of library with button efects + * */ + PushDownAnim.setPushDownAnimTo(btnCreateAccount) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + createAccount(); + } + } ); + PushDownAnim.setPushDownAnimTo(btnImportAccount) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + importAccount(); + } + } ); + // Appbar animation mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() { @Override