animations availible for use in your Android Studio projects.You places these XMl files inside of you anim folder which should be inside of your res folder
you can initialize animations as followed
final Animation shrink = AnimationUtils.loadAnimation(context, R.anim.shrink);
shrink.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
//some action
}
@Override
public void onAnimationEnd(Animation animation) {
//some action
}
@Override
public void onAnimationRepeat(Animation animation) {
//someaction
}
});
Card.startAnimation(shrink); //whatever you're starting the animation on