Class DrawableTransitionOptions
java.lang.Object
com.bumptech.glide.TransitionOptions<DrawableTransitionOptions,Drawable>
com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
- All Implemented Interfaces:
Cloneable
public final class DrawableTransitionOptions
extends TransitionOptions<DrawableTransitionOptions,Drawable>
Contains
Drawable 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()static DrawableTransitionOptionswith(TransitionFactory<Drawable> transitionFactory) Returns aDrawableTransitionOptionsobject that uses the given transition factory.static DrawableTransitionOptionsReturns 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 DrawableTransitionOptionsReturns aDrawableTransitionOptionsobject that enables a cross fade animation.Methods inherited from class com.bumptech.glide.TransitionOptions
clone, dontTransition, transition, transition, transition
-
Constructor Details
-
DrawableTransitionOptions
public DrawableTransitionOptions()
-
-
Method Details
-
withCrossFade
Returns aDrawableTransitionOptionsobject that enables a cross fade animation.- See Also:
-
withCrossFade
Returns aDrawableTransitionOptionsobject that enables a cross fade animation.- See Also:
-
withCrossFade
@NonNull public static DrawableTransitionOptions withCrossFade(@NonNull DrawableCrossFadeFactory drawableCrossFadeFactory) Returns aDrawableTransitionOptionsobject that enables a cross fade animation.- See Also:
-
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<Drawable> transitionFactory) Returns aDrawableTransitionOptionsobject 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 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
- Overrides:
equalsin classTransitionOptions<DrawableTransitionOptions,Drawable>
-
hashCode
public int hashCode()- Overrides:
hashCodein classTransitionOptions<DrawableTransitionOptions,Drawable>
-