com.bumptech.glide.request.animation
Class ViewAnimation<R>
java.lang.Object
com.bumptech.glide.request.animation.ViewAnimation<R>
- Type Parameters:
R - The type of the resource displayed in the view that is animated
- All Implemented Interfaces:
- GlideAnimation<R>
public class ViewAnimation<R>
- extends Object
- implements GlideAnimation<R>
A GlideAnimation that can apply a
Animation to a View using
View.startAnimation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
animate
public boolean animate(R current,
GlideAnimation.ViewAdapter adapter)
- Always clears the current animation on the view using
View.clearAnimation(), then
starts the Animation given in the constructor using
View.startAnimation(android.view.animation.Animation) and then returns false because
the animation does not actually set the current resource on the view.
- 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.