Android Chain Animations
<p>I am attempting to "chain" two animations together, so when one completes, the other begins.  This is working except for one issue.  After the first animation is complete, it moves back to it's original position.  I am setting fill after to true.  What else am I missing?</p>

<p>Here is the code I am using.  Note, this is in a class that is extending LinearLayout.</p>

<pre><code>// FIRST ANIMATION
mAnimation = new TranslateAnimation(0, PANEL_END_X, 0, 0);
mAnimation.setDuration(PANEL_TRANSITION_TIME);
mAnimation.setFillAfter(true);

mAnimation.setAnimationListener(new Animation.AnimationListener() {
    public void onAnimationEnd(Animation animation) {

        // FIRST ANIMATION COMPLETE, CALL THE SECOND ANIMATION
        startAnimation(mAlphaAnimation);
    }
});

// SECOND ANIMATION     
mAlphaAnimation = new AlphaAnimation(1.0f, 0.0f);
mAlphaAnimation.setDuration(PANEL_ALPHA_TRANSITION_TIME);
mAlphaAnimation.setFillAfter(true);
</code></pre>

<p>Solution:</p>

<p>The only way I could get this to work to my satisfaction was to use an <code>AnimationSet</code>, but set the starting offset of the second animation to start offset + duration of the first animation, plus a little padding.  They did not have to be completely exact in my case.</p>

<p>I tried playing with various values as CommonsWare suggested, but I would always get some type of "snapping" effect where the values would revert to their original value before taking the new one.</p>
