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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActualRepeatCount()
Returns the value that was set as the repeat count.static void
reset()
static void
setDurationScale(float duration)
Sets the duration scale for value animator.protected void
setRepeatCount(int count)
-
-
-
Method Detail
-
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 public static void setDurationScale(float duration)
Sets the duration scale for value animator. Calling this method withduration
set to zero will make allValueAnimator
based animations have zero duration.
-
-