-
- All Implemented Interfaces:
-
java.lang.Cloneable
public abstract class TransitionOptions<CHILD extends TransitionOptions<CHILD, TranscodeType>, TranscodeType> implements Cloneable
A base class for setting a transition to use on a resource when a load completes.
-
-
Method Summary
Modifier and Type Method Description final CHILDdontTransition()Removes any existing animation put on the builder. final CHILDtransition(int viewAnimationId)Sets an android.view.animation.Animation to run on the wrapped target when an resourceload finishes. final CHILDtransition(@NonNull() ViewPropertyTransition.Animator animator)Sets an animator to run a android.view.ViewPropertyAnimator on a view that the targetmay be wrapping when a resource load finishes. final CHILDtransition(@NonNull() TransitionFactory<out Object> transitionFactory)Uses the given TransitionFactory to build a for each request started with these {@code * TransitionOptions}.final CHILDclone()-
-
Method Detail
-
dontTransition
@NonNull() final CHILD dontTransition()
Removes any existing animation put on the builder. Will be overridden by subsequent calls thatput an animation.
-
transition
@NonNull() final CHILD transition(int viewAnimationId)
Sets an android.view.animation.Animation to run on the wrapped target when an resourceload finishes. Will only be run if the resource was loaded asynchronously (i.e. was not in thememory cache).
- Parameters:
viewAnimationId- The resource id of the android.view.animation to use as thetransition.
-
transition
@NonNull() final CHILD transition(@NonNull() ViewPropertyTransition.Animator animator)
Sets an animator to run a android.view.ViewPropertyAnimator on a view that the targetmay be wrapping when a resource load finishes. Will only be run if the load was loadedasynchronously (i.e. was not in the memory cache).
- Parameters:
animator- The .Animator to run.
-
transition
@NonNull() final CHILD transition(@NonNull() TransitionFactory<out Object> transitionFactory)
Uses the given TransitionFactory to build a for each request started with these
{@code * TransitionOptions}.
-
-
-
-