|Constructor and Description|
Constructor that takes a default animation and a duration in milliseconds that the cross fade animation should last.
|Modifier and Type||Method and Description|
Animates from the previous drawable to the current drawable in one of two ways.
public DrawableCrossFadeViewAnimation(GlideAnimation<T> defaultAnimation, int duration)
duration- The duration that the cross fade animation should run if there is something to cross fade from when a new
public boolean animate(T current, GlideAnimation.ViewAdapter adapter)
GlideAnimation<T extends Drawable>
current- The new resource that will be displayed in the view.
GlideAnimation.ViewAdapterwrapping a view that can at least return an