public interface

AnimatableDrawable

implements Animatable
com.facebook.imagepipeline.animated.base.AnimatableDrawable
Known Indirect Subclasses

Class Overview

An interface for animatable drawables that can be asked to construct a value animator.

Summary

Public Methods
abstract ValueAnimator.AnimatorUpdateListener createAnimatorUpdateListener()
Creates an animator update listener that will animate the drawable directly.
abstract ValueAnimator createValueAnimator()
An animator that will animate the drawable directly.
abstract ValueAnimator createValueAnimator(int maxDurationMs)
An animator that will animate the drawable directly.
[Expand]
Inherited Methods
From interface android.graphics.drawable.Animatable

Public Methods

public abstract ValueAnimator.AnimatorUpdateListener createAnimatorUpdateListener ()

Creates an animator update listener that will animate the drawable directly. This is useful when the drawable needs to be animated by an existing value animator.

Returns
  • a new update listener

public abstract ValueAnimator createValueAnimator ()

An animator that will animate the drawable directly. The loop count and duration will be determined by metadata in the original image. Update listener is attached automatically.

Returns
  • a new animator

public abstract ValueAnimator createValueAnimator (int maxDurationMs)

An animator that will animate the drawable directly. The loop count will be set based on the specified duration. Update listener is attached automatically.

Parameters
maxDurationMs maximum duration animate
Returns
  • a new animator