Class of android.graphics.drawable · TransitionDrawable.java · Android's reference
public class TransitionDrawable extends LayerDrawable implements Drawable.Callback
TransitionDrawable ← LayerDrawable ← Drawable
Two layers, with a fade from the first to the second, or back.
public TransitionDrawable(Drawable[] layers) sourcepublic void startTransition(int durationMillis) sourcepublic void resetTransition() sourcepublic void reverseTransition(int duration) sourcepublic void setCrossFadeEnabled(boolean enabled) sourcepublic boolean isCrossFadeEnabled() sourcepublic void draw(Canvas canvas) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.