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).
|
DrawableTransitionOptions |
crossFade(int animationId,
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. |
static DrawableTransitionOptions |
withCrossFade(int animationId,
int duration)
Returns a
DrawableTransitionOptions object that enables a cross fade animation. |
clone, dontTransition, transition, transition, transition
public static DrawableTransitionOptions withCrossFade()
DrawableTransitionOptions
object that enables a cross fade animation.crossFade()
public static DrawableTransitionOptions withCrossFade(int duration)
DrawableTransitionOptions
object that enables a cross fade animation.crossFade(int)
public static DrawableTransitionOptions withCrossFade(int animationId, int duration)
DrawableTransitionOptions
object that enables a cross fade animation.crossFade(int, int)
public static DrawableTransitionOptions withCrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
DrawableTransitionOptions
object that enables a cross fade animation.crossFade(DrawableCrossFadeFactory)
public static DrawableTransitionOptions withCrossFade(DrawableCrossFadeFactory.Builder builder)
DrawableTransitionOptions
object that enables a cross fade animation.public static DrawableTransitionOptions with(TransitionFactory<Drawable> transitionFactory)
DrawableTransitionOptions
object that uses the given transition factory.public DrawableTransitionOptions crossFade()
public DrawableTransitionOptions crossFade(int duration)
duration
- The duration of the animation, see
DrawableCrossFadeFactory.Builder(int)
DrawableCrossFadeFactory.Builder
public DrawableTransitionOptions crossFade(int animationId, int duration)
animationId
- The id of the animation to use if no placeholder or previous resource is
set, see DrawableCrossFadeFactory.Builder#setDefaultAnimationId(int)
.duration
- The duration of the cross fade, see
DrawableCrossFadeFactory.Builder(int)
DrawableCrossFadeFactory.Builder
public DrawableTransitionOptions crossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
public DrawableTransitionOptions crossFade(DrawableCrossFadeFactory.Builder builder)