R - The type of the resource that will be transitioned into a view.public class ViewAnimationFactory<R> extends Object implements TransitionFactory<R>
TransitionFactory that produces ViewTransitions.| Constructor and Description |
|---|
ViewAnimationFactory(Animation animation) |
ViewAnimationFactory(int animationId) |
| Modifier and Type | Method and Description |
|---|---|
Transition<R> |
build(DataSource dataSource,
boolean isFirstResource)
Returns a new
Transition for the given arguments. |
public ViewAnimationFactory(Animation animation)
public ViewAnimationFactory(int animationId)
public Transition<R> build(DataSource dataSource, boolean isFirstResource)
Transition for the given arguments. If isFromMemoryCache is true
or isFirstImage is false, returns a NoTransition and otherwise returns a new
ViewTransition.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.