com.bumptech.glide.request.animation
Class ViewAnimation.ViewAnimationFactory<R>

java.lang.Object
  extended by com.bumptech.glide.request.animation.ViewAnimation.ViewAnimationFactory<R>
All Implemented Interfaces:
GlideAnimationFactory<R>
Enclosing class:
ViewAnimation<R>

public static class ViewAnimation.ViewAnimationFactory<R>
extends Object
implements GlideAnimationFactory<R>

A GlideAnimationFactory that produces ViewAnimations.


Constructor Summary
ViewAnimation.ViewAnimationFactory(Animation animation)
           
ViewAnimation.ViewAnimationFactory(Context context, int animationId)
           
 
Method Summary
 GlideAnimation<R> build(boolean isFromMemoryCache, boolean isFirstResource)
          Returns a new GlideAnimation for the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewAnimation.ViewAnimationFactory

public ViewAnimation.ViewAnimationFactory(Animation animation)

ViewAnimation.ViewAnimationFactory

public ViewAnimation.ViewAnimationFactory(Context context,
                                          int animationId)
Method Detail

build

public GlideAnimation<R> build(boolean isFromMemoryCache,
                               boolean isFirstResource)
Returns a new GlideAnimation for the given arguments. If isFromMemoryCache is true or isFirstImage is false, returns a NoAnimation and otherwise returns a new ViewAnimation.

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.