Android ViewPager Transition
here is a nice gif of what happened in the flicker app at the bottom of this site Great animations with PageTransformer
here's what's going on and I'm interested in:
1) first the flicker logo is large
2) by sliding the next page down in the magazine scale and moving with a nice animation
3) at the end of the logo scale down and move to the center, as well as the button moving up
I tried to achieve this effect with ViewPager.PageTransformer
. the problem is i can't control the animation flow with the number of sliding. my animation starts after a full transition to the next page.
i created simple animation like this one: (tried one of them every time)
XML
<scale
android:fromXScale="1.0"
android:fromYScale="1.0"
android:toXScale="0.3"
android:toYScale="0.3"
android:pivotX="50%"
android:pivotY="50%"
android:duration="700"
android:fillBefore="false" />
JAVA
TranslateAnimation trans = new TranslateAnimation(0, 0, logoText.getHeight() + coordinate[1], 0);
trans.setDuration(1000);
trans.setFillAfter(true);
trans.setInterpolator(new AccelerateDecelerateInterpolator());
so how can i create a gif like effect?
source to share
No one has answered this question yet
Check out similar questions: