R - The type of the resource displayed in the view that is animatedpublic class ViewAnimationFactory<R> extends Object implements GlideAnimationFactory<R>
GlideAnimationFactory that produces
ViewAnimations.| Constructor and Description |
|---|
ViewAnimationFactory(Animation animation) |
ViewAnimationFactory(Context context,
int animationId) |
| Modifier and Type | Method and Description |
|---|---|
GlideAnimation<R> |
build(boolean isFromMemoryCache,
boolean isFirstResource)
Returns a new
GlideAnimation for the given arguments. |
public ViewAnimationFactory(Animation animation)
public ViewAnimationFactory(Context context, int animationId)
public GlideAnimation<R> build(boolean isFromMemoryCache, boolean isFirstResource)
GlideAnimation for the given arguments. If
isFromMemoryCache is true or isFirstImage is false, returns a
NoAnimation and otherwise returns a new
ViewAnimation.build in interface GlideAnimationFactory<R>isFromMemoryCache - True if this will be an animation for a resource that was loaded from the memory cache.isFirstResource - True if this is the first resource to be loaded into the target.