Class ViewTransition<R>
java.lang.Object
com.bumptech.glide.request.transition.ViewTransition<R>
- Type Parameters:
R- The type of the resource that will be transitioned into a view.
- All Implemented Interfaces:
Transition<R>
A
Transition that can apply a Animation to a
View using View.startAnimation(android.view.animation.Animation).-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bumptech.glide.request.transition.Transition
Transition.ViewAdapter -
Method Summary
Modifier and TypeMethodDescriptionbooleantransition(R current, Transition.ViewAdapter adapter) Always clears the current animation on the view usingView.clearAnimation(), then starts theAnimationgiven in the constructor usingView.startAnimation(android.view.animation.Animation)and then returnsfalsebecause the animation does not actually put the current resource on the view.
-
Method Details
-
transition
Always clears the current animation on the view usingView.clearAnimation(), then starts theAnimationgiven in the constructor usingView.startAnimation(android.view.animation.Animation)and then returnsfalsebecause the animation does not actually put the current 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.
-