public static class DrawableCrossFadeFactory.Builder extends Object
DrawableCrossFadeFactory
.Modifier and Type | Method and Description |
---|---|
DrawableCrossFadeFactory |
build() |
DrawableCrossFadeFactory.Builder |
setCrossFadeEnabled(boolean isCrossFadeEnabled)
Enables or disables animating the alpha of the
Drawable the cross fade will animate
from. |
public Builder()
public Builder(int durationMillis)
durationMillis
- The duration of the cross fade animation in milliseconds.public DrawableCrossFadeFactory.Builder setCrossFadeEnabled(boolean isCrossFadeEnabled)
Drawable
the cross fade will animate
from.
Defaults to false
.
isCrossFadeEnabled
- If true
the previous Drawable
's alpha will be
animated from 100 to 0 while the new Drawable
's alpha is
animated from 0 to 100. Otherwise the previous Drawable
's
alpha will remain at 100 throughout the animation. See
TransitionDrawable.setCrossFadeEnabled(boolean)
public DrawableCrossFadeFactory build()