R - The type of the resource that will be transitioned into a view.public class ViewPropertyAnimationFactory<R> extends Object implements TransitionFactory<R>
TransitionFactory that produces ViewPropertyAnimations.| Constructor and Description |
|---|
ViewPropertyAnimationFactory(ViewPropertyTransition.Animator animator) |
| Modifier and Type | Method and Description |
|---|---|
Transition<R> |
build(DataSource dataSource,
boolean isFirstResource)
Returns a new
Transition for the given arguments. |
public ViewPropertyAnimationFactory(ViewPropertyTransition.Animator animator)
public Transition<R> build(DataSource dataSource, boolean isFirstResource)
Transition for the given arguments. If isMemoryCache is true or
isFirstImage is false, returns a NoTransition and otherwise returns a new
ViewPropertyTransition for the ViewPropertyTransition.Animator provided in the
constructor.build in interface TransitionFactory<R>dataSource - The DataSource the resource was loaded
from.isFirstResource - True if this is the first resource to be loaded into the target.