CHILD
- The implementation of this class to return to chain methods.TranscodeType
- The type of resource that will be animated.public abstract class TransitionOptions<CHILD extends TransitionOptions<CHILD,TranscodeType>,TranscodeType> extends Object implements Cloneable
Constructor and Description |
---|
TransitionOptions() |
Modifier and Type | Method and Description |
---|---|
protected CHILD |
clone() |
CHILD |
dontTransition()
Removes any existing animation put on the builder.
|
CHILD |
transition(int viewAnimationId)
Sets an
Animation to run on the wrapped target when an resource
load finishes. |
CHILD |
transition(TransitionFactory<? super TranscodeType> transitionFactory) |
CHILD |
transition(ViewPropertyTransition.Animator animator)
Sets an animator to run a
ViewPropertyAnimator on a view that the target
may be wrapping when a resource load finishes. |
public final CHILD dontTransition()
public final CHILD transition(int viewAnimationId)
Animation
to run on the wrapped target when an resource
load finishes.
Will only be run if the resource was loaded asynchronously (i.e. was not in the memory cache).viewAnimationId
- The resource id of the android.view.animation
to use as the
transition.public final CHILD transition(ViewPropertyTransition.Animator animator)
ViewPropertyAnimator
on a view that the target
may be wrapping when a resource load finishes.
Will only be run if the load was loaded asynchronously (i.e. was not in the memory cache).animator
- The .Animator
to run.public final CHILD transition(TransitionFactory<? super TranscodeType> transitionFactory)