public final class DrawableTransitionOptions extends TransitionOptions<DrawableTransitionOptions,Drawable>
Drawable
specific animation options.Constructor and Description |
---|
DrawableTransitionOptions() |
Modifier and Type | Method and Description |
---|---|
DrawableTransitionOptions |
crossFade()
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
DrawableTransitionOptions |
crossFade(DrawableCrossFadeFactory.Builder builder)
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
DrawableTransitionOptions |
crossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
DrawableTransitionOptions |
crossFade(int duration)
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
static DrawableTransitionOptions |
with(TransitionFactory<Drawable> transitionFactory)
Returns a
DrawableTransitionOptions object that uses the given transition factory. |
static DrawableTransitionOptions |
withCrossFade()
Returns a
DrawableTransitionOptions object that enables a cross fade animation. |
static DrawableTransitionOptions |
withCrossFade(DrawableCrossFadeFactory.Builder builder)
Returns a
DrawableTransitionOptions object that enables a cross fade animation. |
static DrawableTransitionOptions |
withCrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
Returns a
DrawableTransitionOptions object that enables a cross fade animation. |
static DrawableTransitionOptions |
withCrossFade(int duration)
Returns a
DrawableTransitionOptions object that enables a cross fade animation. |
clone, dontTransition, transition, transition, transition
@NonNull public static DrawableTransitionOptions withCrossFade()
DrawableTransitionOptions
object that enables a cross fade animation.crossFade()
@NonNull public static DrawableTransitionOptions withCrossFade(int duration)
DrawableTransitionOptions
object that enables a cross fade animation.crossFade(int)
@NonNull public static DrawableTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory)
DrawableTransitionOptions
object that enables a cross fade animation.crossFade(DrawableCrossFadeFactory)
@NonNull public static DrawableTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory.Builder builder)
DrawableTransitionOptions
object that enables a cross fade animation.@NonNull public static DrawableTransitionOptions with(@NonNull TransitionFactory<Drawable> transitionFactory)
DrawableTransitionOptions
object that uses the given transition factory.@NonNull public DrawableTransitionOptions crossFade()
@NonNull public DrawableTransitionOptions crossFade(int duration)
duration
- The duration of the animation, see
DrawableCrossFadeFactory.Builder(int)
DrawableCrossFadeFactory.Builder
@NonNull public DrawableTransitionOptions crossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory)
@NonNull public DrawableTransitionOptions crossFade(@NonNull DrawableCrossFadeFactory.Builder builder)