I want to add several translation animations to one AnimationSet. I am currently doing this by setting a listener in an AnimationSet and executing a new AnimationSet in the onAnimationEnd () method (see below). This is a lot of code and wonders if this can be done in one AnimationSet.
Any idea?
view_2_anim_c.setAnimationListener(new AnimationListener() { public void onAnimationStart(Animation animation) { // TODO Auto-generated method stub } public void onAnimationRepeat(Animation animation) { // TODO Auto-generated method stub } public void onAnimationEnd(Animation animation) { // TODO Auto-generated method stub apa2.startAnimation(view_2_anim_d); //viewBAnimationD(apa2, 0); } });
AnimationSet . , , , , . , . , , , AnimationListener .