public class

AnimatedDrawableValueAnimatorHelper

extends Object
java.lang.Object
   ↳ com.facebook.fresco.animation.drawable.animator.AnimatedDrawableValueAnimatorHelper

Class Overview

Helper class to create ValueAnimators for animated drawables. Currently, this class only supports API 11 (Honeycomb) and above.

Supported drawable types: - AnimatedDrawable2

Summary

Public Methods
static ValueAnimator.AnimatorUpdateListener createAnimatorUpdateListener(Drawable drawable)
Create an animator update listener to be used to update the drawable to be animated.
static ValueAnimator createValueAnimator(Drawable drawable, int maxDurationMs)
Create a value animator for the given animation drawable and max animation duration in ms.
static ValueAnimator createValueAnimator(Drawable drawable)
Create a value animator for the given animation drawable.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public 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
Returns
  • the listener to use

public 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 for
maxDurationMs the max duration in ms
Returns
  • the animator to use

public static ValueAnimator createValueAnimator (Drawable drawable)

Create a value animator for the given animation drawable.

Parameters
drawable the drawable to create the animator for
Returns
  • the animator to use