Class ViewPropertyAnimationFactory<R>
java.lang.Object
com.bumptech.glide.request.transition.ViewPropertyAnimationFactory<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 ViewPropertyAnimations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(DataSource dataSource, boolean isFirstResource) Returns a newTransitionfor the given arguments.
-
Constructor Details
-
ViewPropertyAnimationFactory
-
-
Method Details
-
build
Returns a newTransitionfor the given arguments. If isMemoryCache istrueor isFirstImage isfalse, returns aNoTransitionand otherwise returns a newViewPropertyTransitionfor theViewPropertyTransition.Animatorprovided in the constructor.- 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.
-