package dk.thoerup.side9.anim; import android.view.animation.Animation; import android.widget.ImageView; public final class DisplayNextView implements Animation.AnimationListener { private boolean mCurrentView; ImageView image1; ImageView image2; boolean forward; public DisplayNextView(boolean currentView, boolean forward, ImageView image1, ImageView image2) { mCurrentView = currentView; this.image1 = image1; this.image2 = image2; this.forward = forward; } @Override public void onAnimationStart(Animation animation) { } @Override public void onAnimationEnd(Animation animation) { image1.post(new SwapViews(mCurrentView, forward, image1, image2)); } @Override public void onAnimationRepeat(Animation animation) { } }