TransitionDrawable

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.

Constructors

public TransitionDrawable(Drawable[] layers) source

Methods

public void startTransition(int durationMillis) source
public void resetTransition() source
public void reverseTransition(int duration) source
public void setCrossFadeEnabled(boolean enabled) source
public boolean isCrossFadeEnabled() source
public void draw(Canvas canvas) source

Made 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.