Package org.robolectric.shadows
Class ShadowValueAnimator
java.lang.Object
org.robolectric.shadows.ShadowValueAnimator
- Direct Known Subclasses:
ShadowObjectAnimator
@Implements(android.animation.ValueAnimator.class) public class ShadowValueAnimator extends Object
-
Constructor Summary
Constructors Constructor Description ShadowValueAnimator() -
Method Summary
Modifier and Type Method Description intgetActualRepeatCount()Returns the value that was set as the repeat count.static voidreset()static voidsetDurationScale(float duration)Sets the duration scale for value animator.protected voidsetRepeatCount(int count)
-
Constructor Details
-
ShadowValueAnimator
public ShadowValueAnimator()
-
-
Method Details
-
reset
-
setRepeatCount
-
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
public static void setDurationScale(float duration)Sets the duration scale for value animator. Calling this method withdurationset to zero will make allValueAnimatorbased animations have zero duration.
-