use of com.saulmm.material.utils.AnimatorAdapter in project Android-Material-Examples by saulmm.
the class TransitionSecondActivity method onBackPressed.
@Override
public void onBackPressed() {
for (int i = 0; i < rowContainer.getChildCount(); i++) {
View rowView = rowContainer.getChildAt(i);
ViewPropertyAnimator propertyAnimator = rowView.animate().setStartDelay(i * SCALE_DELAY).scaleX(0).scaleY(0).setListener(new AnimatorAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
finishAfterTransition();
}
});
}
}
Aggregations