You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user