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

feat_androidx_migration
dtvv 2018-10-12 03:09:28 -05:00
parent 074e37076d
commit 012aea807e
1 changed files with 20 additions and 0 deletions

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