R - The type of the resource displayed in the view that is animatedpublic class ViewPropertyAnimation<R> extends Object implements GlideAnimation<R>
GlideAnimation that accepts an interface
that can apply an animation like a ViewPropertyAnimator
or a ObjectAnimator to an View.| Modifier and Type | Class and Description |
|---|---|
static interface |
ViewPropertyAnimation.Animator
An interface that allows an animation to be applied on or started from an
View. |
GlideAnimation.ViewAdapter| Constructor and Description |
|---|
ViewPropertyAnimation(ViewPropertyAnimation.Animator animator)
Constructor for a view property animation that takes an
ViewPropertyAnimation.Animator interface that can apply an animation
to a view. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
animate(R current,
GlideAnimation.ViewAdapter adapter)
Always applies the
ViewPropertyAnimation.Animator given in the
constructor to the given view and returns false because the animator cannot set the new resource on
the view. |
public ViewPropertyAnimation(ViewPropertyAnimation.Animator animator)
ViewPropertyAnimation.Animator interface that can apply an animation
to a view.animator - The animator to use.public boolean animate(R current, GlideAnimation.ViewAdapter adapter)
ViewPropertyAnimation.Animator given in the
constructor to the given view and returns false because the animator cannot set the new resource on
the view.animate in interface GlideAnimation<R>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().