2023-08-17 10:46:24 +02:00
|
|
|
package android.animation;
|
|
|
|
|
|
|
|
|
|
public class Animator {
|
|
|
|
|
|
2023-08-22 14:41:01 +02:00
|
|
|
public interface AnimatorListener {
|
2023-09-01 12:30:27 +02:00
|
|
|
public abstract void onAnimationEnd (Animator animation);
|
2023-08-22 14:41:01 +02:00
|
|
|
}
|
|
|
|
|
|
2023-09-19 23:22:21 +02:00
|
|
|
private AnimatorListener listener;
|
|
|
|
|
|
2023-08-17 10:46:24 +02:00
|
|
|
public void setTarget(Object target) {}
|
|
|
|
|
|
2023-09-19 23:22:21 +02:00
|
|
|
public void start() {
|
|
|
|
|
if (listener != null)
|
|
|
|
|
listener.onAnimationEnd(this);
|
|
|
|
|
}
|
2023-09-01 12:30:27 +02:00
|
|
|
|
|
|
|
|
public void addListener(AnimatorListener listener) {
|
2023-09-19 23:22:21 +02:00
|
|
|
this.listener = listener;
|
2023-09-01 12:30:27 +02:00
|
|
|
}
|
2024-03-29 23:56:28 +01:00
|
|
|
|
|
|
|
|
public void cancel() {}
|
|
|
|
|
|
|
|
|
|
public long getStartDelay() { return 0; }
|
|
|
|
|
|
|
|
|
|
public long getDuration() { return 0; }
|
|
|
|
|
|
|
|
|
|
public Animator setDuration(long duration) { return this; }
|
|
|
|
|
|
2023-08-17 10:46:24 +02:00
|
|
|
}
|