Hi.

I just get this.

I would like the ViewFlipper animation to look (almost) the same as
the native Activity show/disappear.

I currently have fly-out-to-left and fly-in-from-right animations when
user clicks Next, but the animation is not smooth.

*Out to left:*
Animation outtoLeft = new TranslateAnimation(
            Animation.RELATIVE_TO_PARENT,  0.0f,
            Animation.RELATIVE_TO_PARENT, -1.0f,
            Animation.RELATIVE_TO_PARENT,  0.0f,
            Animation.RELATIVE_TO_PARENT,  0.0f);
    outtoLeft.setDuration(msDuration);
    outtoLeft.setInterpolator(new AccelerateInterpolator());

*In from right:*
Animation inFromRight = new TranslateAnimation(
            Animation.RELATIVE_TO_PARENT, +1.0f,
            Animation.RELATIVE_TO_PARENT,  0.0f,
            Animation.RELATIVE_TO_PARENT,  0.0f,
            Animation.RELATIVE_TO_PARENT,  0.0f);
    inFromRight.setDuration(msDuration);
    inFromRight.setInterpolator(new AccelerateInterpolator());



But the animation is ugly since flipper first does the fly-out and
after that fly-in.

How can I set them to render at the same time ?

Cheers,

Hatch

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to