Class BitmapTransitionOptions
java.lang.Object
com.bumptech.glide.TransitionOptions<BitmapTransitionOptions,Bitmap>
com.bumptech.glide.load.resource.bitmap.BitmapTransitionOptions
- All Implemented Interfaces:
Cloneable
public final class BitmapTransitionOptions
extends TransitionOptions<BitmapTransitionOptions,Bitmap>
Contains
Bitmap specific animation options.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).crossFade(int duration) Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).crossFade(DrawableCrossFadeFactory drawableCrossFadeFactory) Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).booleaninthashCode()transitionUsing(TransitionFactory<Drawable> drawableCrossFadeFactory) Enables a any Drawable based animation to run on Bitmaps as well.static BitmapTransitionOptionswith(TransitionFactory<Bitmap> transitionFactory) Returns aBitmapTransitionOptionsobject that uses the given transition factory.static BitmapTransitionOptionsReturns aBitmapTransitionOptionsobject that enables a cross fade animation.static BitmapTransitionOptionswithCrossFade(int duration) Returns aBitmapTransitionOptionsobject that enables a cross fade animation.static BitmapTransitionOptionswithCrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory) Returns aBitmapTransitionOptionsobject that enables a cross fade animation.static BitmapTransitionOptionsReturns aBitmapTransitionOptionsobject that enables a cross fade animation.static BitmapTransitionOptionswithWrapped(TransitionFactory<Drawable> drawableCrossFadeFactory) Returns aBitmapTransitionOptionsobject that enables a any animation that is possible on drawables.Methods inherited from class com.bumptech.glide.TransitionOptions
clone, dontTransition, transition, transition, transition
-
Constructor Details
-
BitmapTransitionOptions
public BitmapTransitionOptions()
-
-
Method Details
-
withCrossFade
Returns aBitmapTransitionOptionsobject that enables a cross fade animation.- See Also:
-
withCrossFade
Returns aBitmapTransitionOptionsobject that enables a cross fade animation.- See Also:
-
withCrossFade
@NonNull public static BitmapTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory) Returns aBitmapTransitionOptionsobject that enables a cross fade animation.- See Also:
-
withCrossFade
@NonNull public static BitmapTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory.Builder builder) Returns aBitmapTransitionOptionsobject that enables a cross fade animation. -
withWrapped
@NonNull public static BitmapTransitionOptions withWrapped(@NonNull TransitionFactory<Drawable> drawableCrossFadeFactory) Returns aBitmapTransitionOptionsobject that enables a any animation that is possible on drawables.- See Also:
-
with
@NonNull public static BitmapTransitionOptions with(@NonNull TransitionFactory<Bitmap> transitionFactory) Returns aBitmapTransitionOptionsobject that uses the given transition factory. -
crossFade
Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used). -
crossFade
Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).- Parameters:
duration- The duration of the animation, seeDrawableCrossFadeFactory.Builder(int).- See Also:
-
crossFade
@NonNull public BitmapTransitionOptions crossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory) Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used). -
transitionUsing
@NonNull public BitmapTransitionOptions transitionUsing(@NonNull TransitionFactory<Drawable> drawableCrossFadeFactory) Enables a any Drawable based animation to run on Bitmaps as well. -
crossFade
@NonNull public BitmapTransitionOptions crossFade(@NonNull DrawableCrossFadeFactory.Builder builder) Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used). -
equals
- Overrides:
equalsin classTransitionOptions<BitmapTransitionOptions,Bitmap>
-
hashCode
public int hashCode()- Overrides:
hashCodein classTransitionOptions<BitmapTransitionOptions,Bitmap>
-