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
add more Animation APIs and call onAnimationEnd()
Directly calling onAnimationEnd() skips the animation and directly sets the target values
This commit is contained in:
7
src/api-impl/android/view/animation/AlphaAnimation.java
Normal file
7
src/api-impl/android/view/animation/AlphaAnimation.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package android.view.animation;
|
||||
|
||||
public class AlphaAnimation extends Animation {
|
||||
|
||||
public AlphaAnimation(float fromAlpha, float toAlpha) {
|
||||
}
|
||||
}
|
||||
@@ -2,4 +2,10 @@ package android.view.animation;
|
||||
|
||||
public class Animation {
|
||||
|
||||
public interface AnimationListener {}
|
||||
|
||||
public void setDuration(long durationMillis) {}
|
||||
|
||||
public void setInterpolator(Interpolator i) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user