T- The type of the
Drawablethat will be animated.
public class DrawableCrossFadeFactory<T extends Drawable> extends Object implements GlideAnimationFactory<T>
GlideAnimationthat varies depending on whether or not the drawable was loaded from the memory cache and whether or not the drawable is the first image to be set on the target.
Resources are usually loaded from the memory cache just before the user can see the view,
for example when the user changes screens or scrolls back and forth in a list. In those cases the user
typically does not expect to see an animation. As a result, when the resource is loaded from the memory
cache this factory produces an
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns a new
public DrawableCrossFadeFactory(int duration)
public DrawableCrossFadeFactory(Context context, int defaultAnimationId, int duration)
public DrawableCrossFadeFactory(Animation defaultAnimation, int duration)
public GlideAnimation<T> build(boolean isFromMemoryCache, boolean isFirstResource)