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

@@ -0,0 +1,7 @@
package android.view.animation;
public class AlphaAnimation extends Animation {
public AlphaAnimation(float fromAlpha, float toAlpha) {
}
}

View File

@@ -2,4 +2,10 @@ package android.view.animation;
public class Animation {
public interface AnimationListener {}
public void setDuration(long durationMillis) {}
public void setInterpolator(Interpolator i) {}
}

View File

@@ -4,4 +4,8 @@ import android.content.Context;
public class AnimationUtils {
public static Animation loadAnimation(Context context, int dummy) { return new Animation(); }
public static long currentAnimationTimeMillis() {
return System.currentTimeMillis();
}
}