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
apps may (ab)use AnimationDrawable.run and Animation.setAnimationListener to time transitions between states; even though we don't currently implement the animations, state transitions are still desirable (otherwise the app may lock up)
26 lines
616 B
Java
26 lines
616 B
Java
package android.view.animation;
|
|
|
|
public class Animation {
|
|
|
|
public interface AnimationListener {
|
|
public void onAnimationEnd(Animation animation);
|
|
public void onAnimationRepeat(Animation animation);
|
|
public void onAnimationStart(Animation animation);
|
|
}
|
|
|
|
public void setDuration(long durationMillis) {}
|
|
|
|
public void setInterpolator(Interpolator i) {}
|
|
|
|
public void cancel() {}
|
|
|
|
public void setFillBefore(boolean dummy) {}
|
|
public void setFillAfter(boolean dummy) {}
|
|
|
|
public void setStartOffset(long offset) {}
|
|
|
|
public void setAnimationListener(AnimationListener l) {
|
|
l.onAnimationEnd(this); // FIXME
|
|
}
|
|
}
|