Class ViewAnimationFactory<R>
- java.lang.Object
-
- com.bumptech.glide.request.transition.ViewAnimationFactory<R>
-
- Type Parameters:
R- The type of the resource that will be transitioned into a view.
- All Implemented Interfaces:
TransitionFactory<R>
public class ViewAnimationFactory<R> extends java.lang.Object implements TransitionFactory<R>
ATransitionFactorythat producesViewTransitions.
-
-
Constructor Summary
Constructors Constructor Description ViewAnimationFactory(int animationId)ViewAnimationFactory(android.view.animation.Animation animation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transition<R>build(DataSource dataSource, boolean isFirstResource)Returns a newTransitionfor the given arguments.
-
-
-
Method Detail
-
build
public Transition<R> build(DataSource dataSource, boolean isFirstResource)
Returns a newTransitionfor the given arguments. If isFromMemoryCache istrueor isFirstImage isfalse, returns aNoTransitionand otherwise returns a newViewTransition.- Specified by:
buildin interfaceTransitionFactory<R>- Parameters:
dataSource- TheDataSourcethe resource was loaded from.isFirstResource- True if this is the first resource to be loaded into the target.
-
-