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.构造器和说明 |
---|
ViewPropertyAnimationFactory(ViewPropertyTransition.Animator animator) |
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
在接口中 TransitionFactory<R>
dataSource
- The DataSource
the resource was loaded
from.isFirstResource
- True if this is the first resource to be loaded into the target.