copy AnimatorSet and related classes from AOSP

This makes AnimatedVectorDrawableCompat from androidx functional and
probably also helps other animation stuff.
This commit is contained in:
Julian Winkler
2025-02-10 18:15:38 +01:00
parent 87b254156d
commit c7f1e05f5d
11 changed files with 6252 additions and 121 deletions

View File

@@ -1,10 +1,11 @@
package android.view;
import android.animation.Animator;
import android.animation.ValueAnimator;
public class ViewAnimationUtils {
public static Animator createCircularReveal(View view, int centerX, int centerY, float startRadius, float endRadius) {
return new Animator();
return new ValueAnimator();
}
}

View File

@@ -2,6 +2,7 @@ package android.view;
import android.animation.Animator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.os.Handler;
public class ViewPropertyAnimator {
@@ -71,7 +72,7 @@ public class ViewPropertyAnimator {
@Override
public void run() {
if (listener != null)
listener.onAnimationEnd(new Animator());
listener.onAnimationEnd(new ValueAnimator());
}
}, startDelay+duration);
}