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>
A
TransitionFactory that produces ViewTransitions.-
Constructor Summary
ConstructorsConstructorDescriptionViewAnimationFactory(int animationId) ViewAnimationFactory(Animation animation) -
Method Summary
Modifier and TypeMethodDescriptionbuild(DataSource dataSource, boolean isFirstResource) Returns a newTransitionfor the given arguments.
-
Constructor Details
-
ViewAnimationFactory
-
ViewAnimationFactory
public ViewAnimationFactory(int animationId)
-
-
Method Details
-
build
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.
-