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>
public class ViewTransition<R> extends java.lang.Object implements Transition<R>
ATransitionthat can apply aAnimationto aViewusingView.startAnimation(android.view.animation.Animation).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.bumptech.glide.request.transition.Transition
Transition.ViewAdapter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantransition(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 Detail
-
transition
public boolean transition(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.- 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.
-
-