Class DrawableCrossFadeFactory.Builder
java.lang.Object
com.bumptech.glide.request.transition.DrawableCrossFadeFactory.Builder
- Enclosing class:
- DrawableCrossFadeFactory
A Builder for
DrawableCrossFadeFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setCrossFadeEnabled(boolean isCrossFadeEnabled) Enables or disables animating the alpha of theDrawablethe cross fade will animate from.
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(int durationMillis) - Parameters:
durationMillis- The duration of the cross fade animation in milliseconds.
-
-
Method Details
-
setCrossFadeEnabled
Enables or disables animating the alpha of theDrawablethe cross fade will animate from.Defaults to
false.- Parameters:
isCrossFadeEnabled- Iftruethe previousDrawable's alpha will be animated from 100 to 0 while the newDrawable's alpha is animated from 0 to 100. Otherwise the previousDrawable's alpha will remain at 100 throughout the animation. SeeTransitionDrawable.setCrossFadeEnabled(boolean)
-
build
-