-Add the new buttons push animation to the buttons in the activity_intro.xml and java source

This commit is contained in:
dtvv 2018-10-12 03:09:28 -05:00
parent 074e37076d
commit 012aea807e

View file

@ -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