TranscodeType
- The type of the resource that will be displayed.public final class GenericTransitionOptions<TranscodeType> extends TransitionOptions<GenericTransitionOptions<TranscodeType>,TranscodeType>
TransitionOptions
that exposes only generic methods that can be applied
to any resource type.Constructor and Description |
---|
GenericTransitionOptions() |
Modifier and Type | Method and Description |
---|---|
static <TranscodeType> |
with(int viewAnimationId)
Returns a typed
GenericTransitionOptions object that uses the given view animation. |
static <TranscodeType> |
with(TransitionFactory<? super TranscodeType> transitionFactory)
Returns a typed
GenericTransitionOptions object that uses the given transition factory. |
static <TranscodeType> |
with(ViewPropertyTransition.Animator animator)
Returns a typed
GenericTransitionOptions object that uses the given animator. |
static <TranscodeType> |
withNoTransition()
Removes any existing animation put on the builder.
|
clone, dontTransition, transition, transition, transition
@NonNull public static <TranscodeType> GenericTransitionOptions<TranscodeType> withNoTransition()
TransitionOptions.dontTransition()
@NonNull public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(int viewAnimationId)
GenericTransitionOptions
object that uses the given view animation.TransitionOptions.transition(int)
@NonNull public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(@NonNull ViewPropertyTransition.Animator animator)
GenericTransitionOptions
object that uses the given animator.@NonNull public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(@NonNull TransitionFactory<? super TranscodeType> transitionFactory)
GenericTransitionOptions
object that uses the given transition factory.