-
- All Implemented Interfaces:
-
java.lang.Cloneable
public final class BitmapTransitionOptions extends TransitionOptions<BitmapTransitionOptions, Bitmap>
Contains Bitmap specific animation options.
-
-
Method Summary
Modifier and Type Method Description static BitmapTransitionOptionswithCrossFade()Returns a BitmapTransitionOptions object that enables a cross fade animation. static BitmapTransitionOptionswithCrossFade(int duration)Returns a BitmapTransitionOptions object that enables a cross fade animation. static BitmapTransitionOptionswithCrossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)Returns a BitmapTransitionOptions object that enables a cross fade animation. static BitmapTransitionOptionswithCrossFade(@NonNull() DrawableCrossFadeFactory.Builder builder)Returns a BitmapTransitionOptions object that enables a cross fade animation. static BitmapTransitionOptionswithWrapped(@NonNull() TransitionFactory<Drawable> drawableCrossFadeFactory)Returns a BitmapTransitionOptions object that enables a any animation that is possibleon drawables. static BitmapTransitionOptionswith(@NonNull() TransitionFactory<Bitmap> transitionFactory)Returns a BitmapTransitionOptions object that uses the given transition factory. BitmapTransitionOptionscrossFade()Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). BitmapTransitionOptionscrossFade(int duration)Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). BitmapTransitionOptionscrossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). BitmapTransitionOptionstransitionUsing(@NonNull() TransitionFactory<Drawable> drawableCrossFadeFactory)Enables a any Drawable based animation to run on Bitmaps as well. BitmapTransitionOptionscrossFade(@NonNull() DrawableCrossFadeFactory.Builder builder)Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). -
-
Method Detail
-
withCrossFade
@NonNull() static BitmapTransitionOptions withCrossFade()
Returns a BitmapTransitionOptions object that enables a cross fade animation.
-
withCrossFade
@NonNull() static BitmapTransitionOptions withCrossFade(int duration)
Returns a BitmapTransitionOptions object that enables a cross fade animation.
-
withCrossFade
@NonNull() static BitmapTransitionOptions withCrossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)
Returns a BitmapTransitionOptions object that enables a cross fade animation.
-
withCrossFade
@NonNull() static BitmapTransitionOptions withCrossFade(@NonNull() DrawableCrossFadeFactory.Builder builder)
Returns a BitmapTransitionOptions object that enables a cross fade animation.
-
withWrapped
@NonNull() static BitmapTransitionOptions withWrapped(@NonNull() TransitionFactory<Drawable> drawableCrossFadeFactory)
Returns a BitmapTransitionOptions object that enables a any animation that is possibleon drawables.
-
with
@NonNull() static BitmapTransitionOptions with(@NonNull() TransitionFactory<Bitmap> transitionFactory)
Returns a BitmapTransitionOptions object that uses the given transition factory.
-
crossFade
@NonNull() BitmapTransitionOptions crossFade()
Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used).
-
crossFade
@NonNull() BitmapTransitionOptions crossFade(int duration)
Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used).
- Parameters:
duration- The duration of the animation, see{@code * DrawableCrossFadeFactory.Builder(int)}.
-
crossFade
@NonNull() BitmapTransitionOptions crossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)
Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used).
-
transitionUsing
@NonNull() BitmapTransitionOptions transitionUsing(@NonNull() TransitionFactory<Drawable> drawableCrossFadeFactory)
Enables a any Drawable based animation to run on Bitmaps as well.
-
crossFade
@NonNull() BitmapTransitionOptions crossFade(@NonNull() DrawableCrossFadeFactory.Builder builder)
Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used).
-
-
-
-