add more Animation APIs and call onAnimationEnd()

Directly calling onAnimationEnd() skips the animation and directly sets
the target values
This commit is contained in:
Julian Winkler
2023-09-01 12:30:27 +02:00
parent e522200e28
commit ad83271080
8 changed files with 40 additions and 2 deletions

View File

@@ -3,10 +3,15 @@ package android.animation;
public class Animator {
public interface AnimatorListener {
public abstract void onAnimationEnd (Animator animation);
}
public void setTarget(Object target) {}
public void start() {}
public void addListener(AnimatorListener listener) {
listener.onAnimationEnd(Animator.this);
}
}