1 package com.xtremelabs.robolectric.util; 2 3 import android.view.animation.Animation; 4 import android.view.animation.Animation.AnimationListener; 5 6 public class TestAnimationListener implements AnimationListener { 7 8 public boolean wasStartCalled = false; 9 public boolean wasEndCalled = false; 10 public boolean wasRepeatCalled = false; 11 12 @Override 13 public void onAnimationStart(Animation animation) { 14 wasStartCalled = true; 15 } 16 17 @Override 18 public void onAnimationEnd(Animation animation) { 19 wasEndCalled = true; 20 } 21 22 @Override 23 public void onAnimationRepeat(Animation animation) { 24 wasRepeatCalled = true; 25 } 26 } 27