com.bumptech.glide.request.animation
Class NoAnimation<R>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoAnimation
public NoAnimation()
getFactory
public static <R> GlideAnimationFactory<R> getFactory()
- Returns an instance of a factory that produces
NoAnimation
s.
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.