1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| final MyAnimation rotation = new MyAnimation(start, end, centerX, centerY);
rotation.setDuration(1000);
rotation.setFillAfter(true);
rotation.setInterpolator(new AccelerateInterpolator());
rotation.setRepeatMode(Animation.REVERSE);
rotation.setRepeatCount(1);
rotation.setAnimationListener(new AnimationListener()
{
public void onAnimationStart(Animation animation)
{
}
public void onAnimationRepeat(Animation animation)
{
}
public void onAnimationEnd(Animation animation)
{
}
});
startAnimation(rotation); |
Partager