R
- The type of the resource displayed in the view that is animatedpublic class ViewPropertyAnimationFactory<R> extends Object implements GlideAnimationFactory<R>
GlideAnimationFactory
that produces ViewPropertyAnimations.Constructor and Description |
---|
ViewPropertyAnimationFactory(ViewPropertyAnimation.Animator animator) |
Modifier and Type | Method and Description |
---|---|
GlideAnimation<R> |
build(boolean isFromMemoryCache,
boolean isFirstResource)
Returns a new
GlideAnimation for the given arguments. |
public ViewPropertyAnimationFactory(ViewPropertyAnimation.Animator animator)
public GlideAnimation<R> build(boolean isFromMemoryCache, boolean isFirstResource)
GlideAnimation
for the given arguments. If
isMemoryCache is true
or isFirstImage is false
, returns a
NoAnimation
and otherwise returns a new
ViewPropertyAnimation
for the
ViewPropertyAnimation.Animator
provided in the constructor.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.