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
public static <TranscodeType> GenericTransitionOptions<TranscodeType> withNoTransition()
TransitionOptions.dontTransition()
public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(int viewAnimationId)
GenericTransitionOptions
object that uses the given view animation.TransitionOptions.transition(int)
public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(ViewPropertyTransition.Animator animator)
GenericTransitionOptions
object that uses the given animator.public static <TranscodeType> GenericTransitionOptions<TranscodeType> with(TransitionFactory<? super TranscodeType> transitionFactory)
GenericTransitionOptions
object that uses the given transition factory.