/[projects]/android/Side9/src/dk/thoerup/side9/anim/DisplayNextView.java
ViewVC logotype

Contents of /android/Side9/src/dk/thoerup/side9/anim/DisplayNextView.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1218 - (show annotations) (download)
Tue Jan 25 09:37:58 2011 UTC (13 years, 3 months ago) by torben
File size: 751 byte(s)
Annotate functions with @Override where appropriate
1 package dk.thoerup.side9.anim;
2
3 import android.view.animation.Animation;
4 import android.widget.ImageView;
5
6 public final class DisplayNextView implements Animation.AnimationListener {
7 private boolean mCurrentView;
8 ImageView image1;
9 ImageView image2;
10 boolean forward;
11
12 public DisplayNextView(boolean currentView, boolean forward, ImageView image1, ImageView image2) {
13 mCurrentView = currentView;
14 this.image1 = image1;
15 this.image2 = image2;
16 this.forward = forward;
17 }
18
19 @Override
20 public void onAnimationStart(Animation animation) {
21 }
22
23 @Override
24 public void onAnimationEnd(Animation animation) {
25 image1.post(new SwapViews(mCurrentView, forward, image1, image2));
26 }
27
28 @Override
29 public void onAnimationRepeat(Animation animation) {
30 }
31 }

  ViewVC Help
Powered by ViewVC 1.1.20