api-impl: misc additions for Oeffi

This commit is contained in:
Julian Winkler
2024-11-22 18:02:54 +01:00
committed by Mis012
parent 7626992241
commit f53ad02e6f
32 changed files with 265 additions and 15 deletions

View File

@@ -1,5 +1,8 @@
package android.view.animation;
import android.os.Handler;
import android.os.Looper;
public class Animation {
public interface AnimationListener {
@@ -20,8 +23,15 @@ public class Animation {
public void setStartOffset(long offset) {}
public void setAnimationListener(AnimationListener l) {
l.onAnimationEnd(this); // FIXME
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
l.onAnimationEnd(Animation.this); // FIXME
}
});
}
public void setRepeatCount(int count) {}
public void reset() {}
}