-
public class AnimatedDrawableValueAnimatorHelperHelper class to create ValueAnimators for animated drawables. Currently, this class only supports API 11 (Honeycomb) and above.
Supported drawable types: - AnimatedDrawable2
-
-
Method Summary
Modifier and Type Method Description static ValueAnimatorcreateValueAnimator(Drawable drawable, int maxDurationMs)Create a value animator for the given animation drawable and max animation duration in ms. static ValueAnimatorcreateValueAnimator(Drawable drawable)Create a value animator for the given animation drawable. static ValueAnimator.AnimatorUpdateListenercreateAnimatorUpdateListener(Drawable drawable)Create an animator update listener to be used to update the drawable to be animated. -
-
Method Detail
-
createValueAnimator
@Nullable() static ValueAnimator createValueAnimator(Drawable drawable, int maxDurationMs)
Create a value animator for the given animation drawable and max animation duration in ms.
- Parameters:
drawable- the drawable to create the animator formaxDurationMs- the max duration in ms
-
createValueAnimator
@Nullable() static ValueAnimator createValueAnimator(Drawable drawable)
Create a value animator for the given animation drawable.
- Parameters:
drawable- the drawable to create the animator for
-
createAnimatorUpdateListener
@Nullable() static ValueAnimator.AnimatorUpdateListener createAnimatorUpdateListener(Drawable drawable)
Create an animator update listener to be used to update the drawable to be animated.
- Parameters:
drawable- the drawable to create the animator update listener for
-
-
-
-