R
- The type of the resource that should be animated to.public interface GlideAnimation<R>
View
s in
Target
s in across resource types. Targets that wrap views will be able to
provide all of the necessary arguments and start the animation. Those that do not will be unable to provide the
necessary arguments and will therefore be forced to ignore the animation. This interface is a compromise that
allows view animations in Glide's complex world of arbitrary resource types and arbitrary target types.Modifier and Type | Interface and Description |
---|---|
static interface |
GlideAnimation.ViewAdapter
An interface wrapping a view that exposes the necessary methods to run the various types of android animations
(
ViewAnimation ,
ViewPropertyAnimation and animated
Drawable s). |
Modifier and Type | Method and Description |
---|---|
boolean |
animate(R current,
GlideAnimation.ViewAdapter adapter)
Animates from the previous
Drawable that is currently being displayed in the
given view, if not null, to the new resource that should be displayed in the view. |
boolean animate(R current, GlideAnimation.ViewAdapter adapter)
Drawable
that is currently being displayed in the
given view, if not null, to the new resource that should be displayed in the view.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()
.