public final class BitmapTransitionOptions extends TransitionOptions<BitmapTransitionOptions,Bitmap>
Bitmap
specific animation options.Constructor and Description |
---|
BitmapTransitionOptions() |
Modifier and Type | Method and Description |
---|---|
BitmapTransitionOptions |
crossFade()
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
BitmapTransitionOptions |
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).
|
BitmapTransitionOptions |
crossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
BitmapTransitionOptions |
crossFade(int duration)
Enables a cross fade animation between both the placeholder and the first resource and between
subsequent resources (if thumbnails are used).
|
BitmapTransitionOptions |
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).
|
BitmapTransitionOptions |
transitionUsing(TransitionFactory<Drawable> drawableCrossFadeFactory)
Enables a any Drawable based animation to run on Bitmaps as well.
|
static BitmapTransitionOptions |
with(TransitionFactory<Bitmap> transitionFactory)
Returns a
BitmapTransitionOptions object that uses the given transition factory. |
static BitmapTransitionOptions |
withCrossFade()
Returns a
BitmapTransitionOptions object that enables a cross fade animation. |
static BitmapTransitionOptions |
withCrossFade(DrawableCrossFadeFactory.Builder builder)
Returns a
BitmapTransitionOptions object that enables a cross fade animation. |
static BitmapTransitionOptions |
withCrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
Returns a
BitmapTransitionOptions object that enables a cross fade animation. |
static BitmapTransitionOptions |
withCrossFade(int duration)
Returns a
BitmapTransitionOptions object that enables a cross fade animation. |
static BitmapTransitionOptions |
withCrossFade(int animationId,
int duration)
Returns a
BitmapTransitionOptions object that enables a cross fade animation. |
static BitmapTransitionOptions |
withWrapped(TransitionFactory<Drawable> drawableCrossFadeFactory)
Returns a
BitmapTransitionOptions object that enables a any animation
that is possible on drawables. |
clone, dontTransition, transition, transition, transition
public static BitmapTransitionOptions withCrossFade()
BitmapTransitionOptions
object that enables a cross fade animation.crossFade()
public static BitmapTransitionOptions withCrossFade(int duration)
BitmapTransitionOptions
object that enables a cross fade animation.crossFade(int)
public static BitmapTransitionOptions withCrossFade(int animationId, int duration)
BitmapTransitionOptions
object that enables a cross fade animation.crossFade(int, int)
public static BitmapTransitionOptions withCrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
BitmapTransitionOptions
object that enables a cross fade animation.crossFade(DrawableCrossFadeFactory)
public static BitmapTransitionOptions withCrossFade(DrawableCrossFadeFactory.Builder builder)
BitmapTransitionOptions
object that enables a cross fade animation.public static BitmapTransitionOptions withWrapped(TransitionFactory<Drawable> drawableCrossFadeFactory)
BitmapTransitionOptions
object that enables a any animation
that is possible on drawables.transitionUsing(TransitionFactory)
public static BitmapTransitionOptions with(TransitionFactory<Bitmap> transitionFactory)
BitmapTransitionOptions
object that uses the given transition factory.public BitmapTransitionOptions crossFade()
public BitmapTransitionOptions crossFade(int duration)
duration
- The duration of the animation, see
DrawableCrossFadeFactory.Builder(int)
.DrawableCrossFadeFactory.Builder
public BitmapTransitionOptions 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 BitmapTransitionOptions crossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)
public BitmapTransitionOptions transitionUsing(TransitionFactory<Drawable> drawableCrossFadeFactory)
public BitmapTransitionOptions crossFade(DrawableCrossFadeFactory.Builder builder)