This document discusses different techniques for animating screen transitions between Android activities. It covers 8 stages: 1) the default animation, 2) measuring views, 3) removing defaults, 4) setting initial positions, 5) animating to the final position, 6) reversing the animations, 7) using Lollipop screen transitions, and 8) setting custom content entrance and exit transitions. Code examples are provided for each stage and the full code is available on GitHub.
23. STAGE 5 - ANIMATE!
Animate image to final position
Fade background in
Bring other views from the sides
24. ANIMATE THINGS BACK TO NORMAL
imageView.animate()
.scaleX(1)
.scaleY(1)
.translationX(0)
.translationY(0)
.setListener(
void onAnimationEnd() {
actionbar.animate()
.translationY(0)
.start();
}
).start();
25.
26. STAGE 6 - REVERSE
Override closing B
Animate everyhitng in reverse
Close B when on animation end