call onAnimationStart() / onAnimationStop() callbacks from View.startAnimation()

This commit is contained in:
Julian Winkler
2025-03-25 19:12:40 +01:00
parent 82f1e59f2a
commit 494b4e7134
2 changed files with 22 additions and 11 deletions

View File

@@ -1732,7 +1732,15 @@ public class View implements Drawable.Callback {
public void setOnCreateContextMenuListener (View.OnCreateContextMenuListener l) {}
public void startAnimation(Animation animation) {}
protected void onAnimationStart() {}
protected void onAnimationEnd() {}
public void startAnimation(Animation animation) {
onAnimationStart();
animation.start();
onAnimationEnd();
}
public void getDrawingRect(Rect rect) {
rect.left = getScrollX();