com.bumptech.glide.request.animation
Class ViewPropertyAnimation.ViewPropertyAnimationFactory<R>
java.lang.Object
com.bumptech.glide.request.animation.ViewPropertyAnimation.ViewPropertyAnimationFactory<R>
- All Implemented Interfaces:
- GlideAnimationFactory<R>
- Enclosing class:
- ViewPropertyAnimation<R>
public static class ViewPropertyAnimation.ViewPropertyAnimationFactory<R>
- extends Object
- implements GlideAnimationFactory<R>
A GlideAnimationFactory
that produces ViewPropertyAnimations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewPropertyAnimation.ViewPropertyAnimationFactory
public ViewPropertyAnimation.ViewPropertyAnimationFactory(ViewPropertyAnimation.Animator animator)
build
public GlideAnimation<R> build(boolean isFromMemoryCache,
boolean isFirstResource)
- Returns a new
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.
- Specified by:
build
in interface GlideAnimationFactory<R>
- Parameters:
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.