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 |
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 |
withWrapped(TransitionFactory<Drawable> drawableCrossFadeFactory)
Returns a
BitmapTransitionOptions object that enables a any animation
that is possible on drawables. |
clone, dontTransition, transition, transition, transition
@NonNull public static BitmapTransitionOptions withCrossFade()
BitmapTransitionOptions
object that enables a cross fade animation.crossFade()
@NonNull public static BitmapTransitionOptions withCrossFade(int duration)
BitmapTransitionOptions
object that enables a cross fade animation.crossFade(int)
@NonNull public static BitmapTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory)
BitmapTransitionOptions
object that enables a cross fade animation.crossFade(DrawableCrossFadeFactory)
@NonNull public static BitmapTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory.Builder builder)
BitmapTransitionOptions
object that enables a cross fade animation.@NonNull public static BitmapTransitionOptions withWrapped(@NonNull TransitionFactory<Drawable> drawableCrossFadeFactory)
BitmapTransitionOptions
object that enables a any animation
that is possible on drawables.transitionUsing(TransitionFactory)
@NonNull public static BitmapTransitionOptions with(@NonNull TransitionFactory<Bitmap> transitionFactory)
BitmapTransitionOptions
object that uses the given transition factory.@NonNull public BitmapTransitionOptions crossFade()
@NonNull public BitmapTransitionOptions crossFade(int duration)
duration
- The duration of the animation, see
DrawableCrossFadeFactory.Builder(int)
.DrawableCrossFadeFactory.Builder
@NonNull public BitmapTransitionOptions crossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory)
@NonNull public BitmapTransitionOptions transitionUsing(@NonNull TransitionFactory<Drawable> drawableCrossFadeFactory)
@NonNull public BitmapTransitionOptions crossFade(@NonNull DrawableCrossFadeFactory.Builder builder)