com.bumptech.glide.request.animation
Class NoAnimation<R>

java.lang.Object
  extended by com.bumptech.glide.request.animation.NoAnimation<R>
Type Parameters:
R - animated resource type
All Implemented Interfaces:
GlideAnimation<R>

public class NoAnimation<R>
extends Object
implements GlideAnimation<R>

A simple GlideAnimation that performs no actions.


Nested Class Summary
static class NoAnimation.NoAnimationFactory<R>
          A factory that always returns the same NoAnimation.
 
Nested classes/interfaces inherited from interface com.bumptech.glide.request.animation.GlideAnimation
GlideAnimation.ViewAdapter
 
Constructor Summary
NoAnimation()
           
 
Method Summary
 boolean animate(Object current, GlideAnimation.ViewAdapter adapter)
          Performs no animation and always returns false.
static
<R> GlideAnimation<R>
get()
          Returns an instance of NoAnimation.
static
<R> GlideAnimationFactory<R>
getFactory()
          Returns an instance of a factory that produces NoAnimations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoAnimation

public NoAnimation()
Method Detail

getFactory

public static <R> GlideAnimationFactory<R> getFactory()
Returns an instance of a factory that produces NoAnimations.


get

public static <R> GlideAnimation<R> get()
Returns an instance of NoAnimation.


animate

public boolean animate(Object current,
                       GlideAnimation.ViewAdapter adapter)
Performs no animation and always returns false.

Specified by:
animate in interface GlideAnimation<R>
Parameters:
current - The new resource that will be displayed in the view.
adapter - The GlideAnimation.ViewAdapter wrapping a view that can at least return an View from GlideAnimation.ViewAdapter.getView().
Returns:
True if int he process of running the animation the new resource was set on the view, false if the caller needs to manually set the current resource on the view.