Class NoTransition<R>
java.lang.Object
com.bumptech.glide.request.transition.NoTransition<R>
- Type Parameters:
R- the resource type that will be transitioned into aTarget.
- All Implemented Interfaces:
Transition<R>
A simple
Transition that performs no actions.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA factory that always returns the sameNoTransition.Nested classes/interfaces inherited from interface com.bumptech.glide.request.transition.Transition
Transition.ViewAdapter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <R> Transition<R>get()Returns an instance ofNoTransition.static <R> TransitionFactory<R>Returns an instance of a factory that producesNoTransitions.booleantransition(Object current, Transition.ViewAdapter adapter) Performs no animation and always returnsfalse.
-
Constructor Details
-
NoTransition
public NoTransition()
-
-
Method Details
-
getFactory
Returns an instance of a factory that producesNoTransitions. -
get
Returns an instance ofNoTransition. -
transition
Performs no animation and always returnsfalse.- 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.
-