I am trying to get my imageView animations to play serially. But when onAnimationEnd the original one somehow replays :
private void drawCurrentGame() { final LinkedList<ImageView> animation_queue = (LinkedList<ImageView>) current_game.clone(); ImageView working_view; final AlphaAnimation anim = new AlphaAnimation(0.0f, 1.0f); anim.setDuration(500); anim.setAnimationListener(new Animation.AnimationListener() { public void onAnimationStart(Animation a) { } public void onAnimationRepeat(Animation a) {} public void onAnimationEnd(Animation a) { ImaveView v = ((AlphaAnimation)a).getView(); if( animation_queue.isEmpty() ) return; animation_queue.poll().startAnimation(anim); } }); if( !animation_queue.isEmpty()) { animation_queue.poll().startAnimation(anim); } } HElp please! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en