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>
public class NoTransition<R> extends java.lang.Object implements Transition<R>
A simpleTransitionthat performs no actions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNoTransition.NoAnimationFactory<R>A factory that always returns the sameNoTransition.-
Nested classes/interfaces inherited from interface com.bumptech.glide.request.transition.Transition
Transition.ViewAdapter
-
-
Constructor Summary
Constructors Constructor Description NoTransition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R> Transition<R>get()Returns an instance ofNoTransition.static <R> TransitionFactory<R>getFactory()Returns an instance of a factory that producesNoTransitions.booleantransition(java.lang.Object current, Transition.ViewAdapter adapter)Performs no animation and always returnsfalse.
-
-
-
Method Detail
-
getFactory
public static <R> TransitionFactory<R> getFactory()
Returns an instance of a factory that producesNoTransitions.
-
get
public static <R> Transition<R> get()
Returns an instance ofNoTransition.
-
transition
public boolean transition(java.lang.Object current, Transition.ViewAdapter adapter)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.
-
-