how can i use four animation one after another
hi i have four animation,viz anim1,anim2,anim3,anim4.For the animation i am using the code as
RotateAnimation anim1 = new RotateAnimation(240, 120, 8, 70);
anim1.setRepeatCount(0);
anim1.setDuration(18000);
anim1.setFillAfter(true);
img7.startAnimation(anim1);
i want to play four animtion one after another, ie at the end of anim1,anim2 has to play and so on....for the first two animation i am using
setAnimationListener()
and it is working by giving second(anim2) as
public void onAnimationEnd(Animation animation) {
// TODO Auto-generated method stub
RotateAnimation anim2 = new RotateAnimation(240, 120, 8, 70);
开发者_如何学JAVAanim2.setRepeatCount(0);
anim2.setDuration(18000);
anim2.setFillAfter(true);
img7.startAnimation(anim2);
}
Now what will i do for the rest of the animation.Please some body help me.
Try using Animation Listener,
link
精彩评论