Class ShadowValueAnimator

java.lang.Object
org.robolectric.shadows.ShadowValueAnimator

@Implements(android.animation.ValueAnimator.class) public class ShadowValueAnimator extends Object
  • Constructor Details

    • ShadowValueAnimator

      public ShadowValueAnimator()
  • Method Details

    • reset

      @Resetter public static void reset()
    • setRepeatCount

      @Implementation protected void setRepeatCount(int count)
    • getActualRepeatCount

      public int getActualRepeatCount()
      Returns the value that was set as the repeat count. This is otherwise the same as getRepeatCount(), except when the count was set to infinite.
      Returns:
      Repeat count.
    • setDurationScale

      @Implementation protected static void setDurationScale(float duration)
      Sets the duration scale for value animator. To set this value use UiAutomation.setAnimationScale(float) or ShadowUiAutomation.setAnimationScaleCompat(float).