I want to animate a presentation consisting of several lines of text, as shown in the link https://dl.dropboxusercontent.com/u/8003415/animation.gif . This view consists of two TextViews enclosed in a parent view.
This parent view contains two sets of animations.
1) the first set of views contains several lines of text that scale from normal to large, and then disappear.
2) the second set of representations contains another set of plural text, which disappears and scales from small to normal.
note that scaling and fading must occur at the same time.
for the first set, I developed the following set of animations. This animation sets the scales ((1,1) - (1,5,1,5))) and fades the text block from the center.
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/custom_decelerator" > <scale android:duration="50" android:fromXScale="1.0" android:fromYScale="1.0" android:pivotX="50%" android:pivotY="50%" android:toXScale="1.5" android:toYScale="1.5" /> <alpha android:duration="2000" android:fromAlpha="2.0" android:toAlpha="0.0" /> </set>
and for the second set, it also scales ((-1, -1) - (1,1))) and the text block from the center fades out
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@anim/custom_decelerator" > <alpha android:duration="50" android:fromAlpha="0.0" android:toAlpha="0.2" /> <scale android:duration="3000" android:fromXScale="-1" android:fromYScale="-1" android:pivotX="50%" android:pivotY="50%" android:toXScale="1.0" android:toYScale="1.0" /> </set>
The problem is that the two sets of animation do not exactly match the animation specified in the link above.
Animation doesn't seem to come from the dead center of text blocks.