Class BitmapTransitionOptions
- java.lang.Object
-
- com.bumptech.glide.TransitionOptions<BitmapTransitionOptions,android.graphics.Bitmap>
-
- com.bumptech.glide.load.resource.bitmap.BitmapTransitionOptions
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class BitmapTransitionOptions extends TransitionOptions<BitmapTransitionOptions,android.graphics.Bitmap>
ContainsBitmapspecific animation options.
-
-
Constructor Summary
Constructors Constructor Description BitmapTransitionOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BitmapTransitionOptionscrossFade()Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).BitmapTransitionOptionscrossFade(int duration)Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).BitmapTransitionOptionscrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).BitmapTransitionOptionscrossFade(DrawableCrossFadeFactory.Builder builder)Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).booleanequals(java.lang.Object o)inthashCode()BitmapTransitionOptionstransitionUsing(TransitionFactory<android.graphics.drawable.Drawable> drawableCrossFadeFactory)Enables a any Drawable based animation to run on Bitmaps as well.static BitmapTransitionOptionswith(TransitionFactory<android.graphics.Bitmap> transitionFactory)Returns aBitmapTransitionOptionsobject that uses the given transition factory.static BitmapTransitionOptionswithCrossFade()Returns 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 BitmapTransitionOptionswithCrossFade(DrawableCrossFadeFactory.Builder builder)Returns aBitmapTransitionOptionsobject that enables a cross fade animation.static BitmapTransitionOptionswithWrapped(TransitionFactory<android.graphics.drawable.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
-
-
-
-
Method Detail
-
withCrossFade
@NonNull public static BitmapTransitionOptions withCrossFade()
Returns aBitmapTransitionOptionsobject that enables a cross fade animation.- See Also:
crossFade()
-
withCrossFade
@NonNull public static BitmapTransitionOptions withCrossFade(int duration)
Returns aBitmapTransitionOptionsobject that enables a cross fade animation.- See Also:
crossFade(int)
-
withCrossFade
@NonNull public static BitmapTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory)
Returns aBitmapTransitionOptionsobject that enables a cross fade animation.- See Also:
crossFade(DrawableCrossFadeFactory)
-
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<android.graphics.drawable.Drawable> drawableCrossFadeFactory)
Returns aBitmapTransitionOptionsobject that enables a any animation that is possible on drawables.- See Also:
transitionUsing(TransitionFactory)
-
with
@NonNull public static BitmapTransitionOptions with(@NonNull TransitionFactory<android.graphics.Bitmap> transitionFactory)
Returns aBitmapTransitionOptionsobject that uses the given transition factory.
-
crossFade
@NonNull public BitmapTransitionOptions crossFade()
Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).
-
crossFade
@NonNull public 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).- Parameters:
duration- The duration of the animation, seeDrawableCrossFadeFactory.Builder(int).- See Also:
DrawableCrossFadeFactory.Builder
-
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<android.graphics.drawable.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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTransitionOptions<BitmapTransitionOptions,android.graphics.Bitmap>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTransitionOptions<BitmapTransitionOptions,android.graphics.Bitmap>
-
-