-
- All Implemented Interfaces:
-
java.lang.Cloneable
public final class DrawableTransitionOptions extends TransitionOptions<DrawableTransitionOptions, Drawable>
Contains Drawable specific animation options.
-
-
Method Summary
Modifier and Type Method Description static DrawableTransitionOptionswithCrossFade()Returns a DrawableTransitionOptions object that enables a cross fade animation. static DrawableTransitionOptionswithCrossFade(int duration)Returns a DrawableTransitionOptions object that enables a cross fade animation. static DrawableTransitionOptionswithCrossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)Returns a DrawableTransitionOptions object that enables a cross fade animation. static DrawableTransitionOptionswithCrossFade(@NonNull() DrawableCrossFadeFactory.Builder builder)Returns a DrawableTransitionOptions object that enables a cross fade animation. static DrawableTransitionOptionswith(@NonNull() TransitionFactory<Drawable> transitionFactory)Returns a DrawableTransitionOptions object that uses the given transition factory. DrawableTransitionOptionscrossFade()Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). DrawableTransitionOptionscrossFade(int duration)Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). DrawableTransitionOptionscrossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used). DrawableTransitionOptionscrossFade(@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 DrawableTransitionOptions withCrossFade()
Returns a DrawableTransitionOptions object that enables a cross fade animation.
-
withCrossFade
@NonNull() static DrawableTransitionOptions withCrossFade(int duration)
Returns a DrawableTransitionOptions object that enables a cross fade animation.
-
withCrossFade
@NonNull() static DrawableTransitionOptions withCrossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)
Returns a DrawableTransitionOptions object that enables a cross fade animation.
-
withCrossFade
@NonNull() static DrawableTransitionOptions withCrossFade(@NonNull() DrawableCrossFadeFactory.Builder builder)
Returns a DrawableTransitionOptions object that enables a cross fade animation.
-
with
@NonNull() static DrawableTransitionOptions with(@NonNull() TransitionFactory<Drawable> transitionFactory)
Returns a DrawableTransitionOptions object that uses the given transition factory.
-
crossFade
@NonNull() DrawableTransitionOptions crossFade()
Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used).
-
crossFade
@NonNull() DrawableTransitionOptions 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() DrawableTransitionOptions crossFade(@NonNull() DrawableCrossFadeFactory drawableCrossFadeFactory)
Enables a cross fade animation between both the placeholder and the first resource and betweensubsequent resources (if thumbnails are used).
-
crossFade
@NonNull() DrawableTransitionOptions 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).
-
-
-
-