R- The type of the resource displayed in the view that is animated
public class ViewPropertyAnimation<R> extends Object implements GlideAnimation<R>
GlideAnimationthat accepts an interface that can apply an animation like a
|Modifier and Type||Class and Description|
An interface that allows an animation to be applied on or started from an
|Constructor and Description|
Constructor for a view property animation that takes an
|Modifier and Type||Method and Description|
Always applies the
public ViewPropertyAnimation(ViewPropertyAnimation.Animator animator)
ViewPropertyAnimation.Animatorinterface that can apply an animation to a view.
animator- The animator to use.
public boolean animate(R current, GlideAnimation.ViewAdapter adapter)
ViewPropertyAnimation.Animatorgiven in the constructor to the given view and returns
falsebecause the animator cannot set the new resource on the view.
current- The new resource that will be displayed in the view.
GlideAnimation.ViewAdapterwrapping a view that can at least return an