-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.request.transition.Transition
public class ViewPropertyTransition<R> implements Transition<R>
A Transition that accepts an interface that can apply an animation like a or a android.animation.ObjectAnimator that can be used to transition a resource into a View.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceViewPropertyTransition.AnimatorAn interface that allows an animation to be applied on or started from an .
-
Constructor Summary
Constructors Constructor Description ViewPropertyTransition(ViewPropertyTransition.Animator animator)Constructor for a view property animation that takes an Animator interface that can apply a transition to a view.
-
Method Summary
Modifier and Type Method Description booleantransition(R current, Transition.ViewAdapter adapter)Always applies the Animator given in the constructor to thegiven view and returns {@code false}because the animator cannot put the new resource on theview.-
-
Constructor Detail
-
ViewPropertyTransition
ViewPropertyTransition(ViewPropertyTransition.Animator animator)
Constructor for a view property animation that takes an Animator interface that can apply a transition to a view.- Parameters:
animator- The animator to use.
-
-
Method Detail
-
transition
boolean transition(R current, Transition.ViewAdapter adapter)
Always applies the Animator given in the constructor to thegiven view and returns
{@code false}because the animator cannot put the new resource on theview.- Parameters:
current- The new resource that will be displayed in the view.adapter- The ViewAdapter wrapping a view that can at least return anView from getView.
-
-
-
-