Class ViewPropertyTransition<R>
- java.lang.Object
-
- com.bumptech.glide.request.transition.ViewPropertyTransition<R>
-
- Type Parameters:
R- The type of the resource that will be transitioned into a view.
- All Implemented Interfaces:
Transition<R>
public class ViewPropertyTransition<R> extends java.lang.Object implements Transition<R>
ATransitionthat accepts an interface that can apply an animation like aViewPropertyAnimatoror aObjectAnimatorthat can be used to transition a resource into aView.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceViewPropertyTransition.AnimatorAn interface that allows an animation to be applied on or started from anView.-
Nested classes/interfaces inherited from interface com.bumptech.glide.request.transition.Transition
Transition.ViewAdapter
-
-
Constructor Summary
Constructors Constructor Description ViewPropertyTransition(ViewPropertyTransition.Animator animator)Constructor for a view property animation that takes anViewPropertyTransition.Animatorinterface that can apply a transition to a view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantransition(R current, Transition.ViewAdapter adapter)Always applies theViewPropertyTransition.Animatorgiven in the constructor to the given view and returnsfalsebecause the animator cannot put the new resource on the view.
-
-
-
Constructor Detail
-
ViewPropertyTransition
public ViewPropertyTransition(ViewPropertyTransition.Animator animator)
Constructor for a view property animation that takes anViewPropertyTransition.Animatorinterface that can apply a transition to a view.- Parameters:
animator- The animator to use.
-
-
Method Detail
-
transition
public boolean transition(R current, Transition.ViewAdapter adapter)
Always applies theViewPropertyTransition.Animatorgiven in the constructor to the given view and returnsfalsebecause the animator cannot put the new resource on the view.- Specified by:
transitionin interfaceTransition<R>- Parameters:
current- The new resource that will be displayed in the view.adapter- TheTransition.ViewAdapterwrapping a view that can at least return anViewfromTransition.ViewAdapter.getView().- Returns:
- True if in the process of running the transition, the new resource was put on the view, false if the caller needs to manually put the current resource on the view.
-
-