Class DrawableTransitionOptions
- java.lang.Object
-
- com.bumptech.glide.TransitionOptions<DrawableTransitionOptions,android.graphics.drawable.Drawable>
-
- com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class DrawableTransitionOptions extends TransitionOptions<DrawableTransitionOptions,android.graphics.drawable.Drawable>
ContainsDrawablespecific animation options.
-
-
Constructor Summary
Constructors Constructor Description DrawableTransitionOptions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DrawableTransitionOptionscrossFade()Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).DrawableTransitionOptionscrossFade(int duration)Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).DrawableTransitionOptionscrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)Enables a cross fade animation between both the placeholder and the first resource and between subsequent resources (if thumbnails are used).DrawableTransitionOptionscrossFade(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()static DrawableTransitionOptionswith(TransitionFactory<android.graphics.drawable.Drawable> transitionFactory)Returns aDrawableTransitionOptionsobject that uses the given transition factory.static DrawableTransitionOptionswithCrossFade()Returns aDrawableTransitionOptionsobject that enables a cross fade animation.static DrawableTransitionOptionswithCrossFade(int duration)Returns aDrawableTransitionOptionsobject that enables a cross fade animation.static DrawableTransitionOptionswithCrossFade(DrawableCrossFadeFactory drawableCrossFadeFactory)Returns aDrawableTransitionOptionsobject that enables a cross fade animation.static DrawableTransitionOptionswithCrossFade(DrawableCrossFadeFactory.Builder builder)Returns aDrawableTransitionOptionsobject that enables a cross fade animation.-
Methods inherited from class com.bumptech.glide.TransitionOptions
clone, dontTransition, transition, transition, transition
-
-
-
-
Method Detail
-
withCrossFade
@NonNull public static DrawableTransitionOptions withCrossFade()
Returns aDrawableTransitionOptionsobject that enables a cross fade animation.- See Also:
crossFade()
-
withCrossFade
@NonNull public static DrawableTransitionOptions withCrossFade(int duration)
Returns aDrawableTransitionOptionsobject that enables a cross fade animation.- See Also:
crossFade(int)
-
withCrossFade
@NonNull public static DrawableTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory)
Returns aDrawableTransitionOptionsobject that enables a cross fade animation.- See Also:
crossFade(DrawableCrossFadeFactory)
-
withCrossFade
@NonNull public static DrawableTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory.Builder builder)
Returns aDrawableTransitionOptionsobject that enables a cross fade animation.
-
with
@NonNull public static DrawableTransitionOptions with(@NonNull TransitionFactory<android.graphics.drawable.Drawable> transitionFactory)
Returns aDrawableTransitionOptionsobject that uses the given transition factory.
-
crossFade
@NonNull public DrawableTransitionOptions 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 DrawableTransitionOptions 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 DrawableTransitionOptions 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).
-
crossFade
@NonNull public DrawableTransitionOptions 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<DrawableTransitionOptions,android.graphics.drawable.Drawable>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTransitionOptions<DrawableTransitionOptions,android.graphics.drawable.Drawable>
-
-