2023-07-25 14:29:43 +02:00
|
|
|
package android.view.animation;
|
|
|
|
|
|
2024-11-22 18:02:54 +01:00
|
|
|
import android.os.Handler;
|
|
|
|
|
import android.os.Looper;
|
|
|
|
|
|
2023-07-25 14:29:43 +02:00
|
|
|
public class Animation {
|
|
|
|
|
|
2024-03-16 18:55:14 +01:00
|
|
|
public interface AnimationListener {
|
|
|
|
|
public void onAnimationEnd(Animation animation);
|
|
|
|
|
public void onAnimationRepeat(Animation animation);
|
|
|
|
|
public void onAnimationStart(Animation animation);
|
|
|
|
|
}
|
2023-09-01 12:30:27 +02:00
|
|
|
|
|
|
|
|
public void setDuration(long durationMillis) {}
|
|
|
|
|
|
|
|
|
|
public void setInterpolator(Interpolator i) {}
|
|
|
|
|
|
2023-11-08 21:40:39 +01:00
|
|
|
public void cancel() {}
|
|
|
|
|
|
2024-03-15 20:02:18 +01:00
|
|
|
public void setFillBefore(boolean dummy) {}
|
|
|
|
|
public void setFillAfter(boolean dummy) {}
|
2024-03-16 18:55:14 +01:00
|
|
|
|
|
|
|
|
public void setStartOffset(long offset) {}
|
|
|
|
|
|
|
|
|
|
public void setAnimationListener(AnimationListener l) {
|
2024-11-22 18:02:54 +01:00
|
|
|
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
l.onAnimationEnd(Animation.this); // FIXME
|
|
|
|
|
}
|
|
|
|
|
});
|
2024-03-16 18:55:14 +01:00
|
|
|
}
|
2024-06-24 18:44:31 +02:00
|
|
|
|
|
|
|
|
public void setRepeatCount(int count) {}
|
2024-11-22 18:02:54 +01:00
|
|
|
|
|
|
|
|
public void reset() {}
|
2023-07-25 14:29:43 +02:00
|
|
|
}
|