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>
A
Transition that accepts an interface that can apply an animation like a ViewPropertyAnimator or a ObjectAnimator that can be used
to transition a resource into a View.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn 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
ConstructorsConstructorDescriptionConstructor for a view property animation that takes anViewPropertyTransition.Animatorinterface that can apply a transition to a view. -
Method Summary
Modifier and TypeMethodDescriptionbooleantransition(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 Details
-
ViewPropertyTransition
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 Details
-
transition
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.
-