-
- All Implemented Interfaces:
-
android.graphics.drawable.Animatable,android.graphics.drawable.Drawable.Callback,androidx.vectordrawable.graphics.drawable.Animatable2Compat
public final class CrossfadeDrawable extends Drawable implements Drawable.Callback, Animatable2Compat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCrossfadeDrawable.Companion
-
Constructor Summary
Constructors Constructor Description CrossfadeDrawable(Drawable start, Drawable end, Scale scale, Integer durationMillis, Boolean fadeStart, Boolean preferExactIntrinsicSize)CrossfadeDrawable(Drawable start, Drawable end, Scale scale, Integer durationMillis, Boolean fadeStart)CrossfadeDrawable(Drawable start, Drawable end, Scale scale, Integer durationMillis)CrossfadeDrawable(Drawable start, Drawable end, Scale scale)CrossfadeDrawable(Drawable start, Drawable end)
-
Method Summary
-
Methods inherited from class coil.drawable.CrossfadeDrawable
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, hasFocusStateSpecified, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setVisible, unscheduleSelf -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CrossfadeDrawable
CrossfadeDrawable(Drawable start, Drawable end, Scale scale, Integer durationMillis, Boolean fadeStart, Boolean preferExactIntrinsicSize)
- Parameters:
start- The Drawable to crossfade from.end- The Drawable to crossfade to.scale- The scaling algorithm for start and end.durationMillis- The duration of the crossfade animation.fadeStart- If false, the start drawable will not fade out while the end drawable fades in.preferExactIntrinsicSize- If true, this drawable's intrinsic width/height will only be -1 if startandend return -1 for that dimension.
-
CrossfadeDrawable
CrossfadeDrawable(Drawable start, Drawable end, Scale scale, Integer durationMillis, Boolean fadeStart)
-
CrossfadeDrawable
CrossfadeDrawable(Drawable start, Drawable end, Scale scale, Integer durationMillis)
-
-
Method Detail
-
getDurationMillis
final Integer getDurationMillis()
-
getFadeStart
final Boolean getFadeStart()
-
getPreferExactIntrinsicSize
final Boolean getPreferExactIntrinsicSize()
-
getOpacity
@Deprecated(message = Deprecated in Java) Integer getOpacity()
-
getColorFilter
ColorFilter getColorFilter()
-
setColorFilter
Unit setColorFilter(ColorFilter colorFilter)
-
getIntrinsicWidth
Integer getIntrinsicWidth()
-
getIntrinsicHeight
Integer getIntrinsicHeight()
-
unscheduleDrawable
Unit unscheduleDrawable(Drawable who, Runnable what)
-
invalidateDrawable
Unit invalidateDrawable(Drawable who)
-
scheduleDrawable
Unit scheduleDrawable(Drawable who, Runnable what, Long when)
-
setTintList
Unit setTintList(ColorStateList tint)
-
setTintMode
Unit setTintMode(PorterDuff.Mode tintMode)
-
setTintBlendMode
@RequiresApi(value = 29) Unit setTintBlendMode(BlendMode blendMode)
-
registerAnimationCallback
Unit registerAnimationCallback(Animatable2Compat.AnimationCallback callback)
-
unregisterAnimationCallback
Boolean unregisterAnimationCallback(Animatable2Compat.AnimationCallback callback)
-
clearAnimationCallbacks
<ERROR CLASS> clearAnimationCallbacks()
-
-
-
-