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>
public class ViewPropertyAnimationFactory<R> extends java.lang.Object implements TransitionFactory<R>
ATransitionFactorythat produces ViewPropertyAnimations.
-
-
Constructor Summary
Constructors Constructor Description ViewPropertyAnimationFactory(ViewPropertyTransition.Animator animator)
-
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.
-
-
-
Constructor Detail
-
ViewPropertyAnimationFactory
public ViewPropertyAnimationFactory(ViewPropertyTransition.Animator animator)
-
-
Method Detail
-
build
public Transition<R> build(DataSource dataSource, boolean isFirstResource)
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.
-
-