Example usage for Java android.graphics.drawable TransitionDrawable fields, constructors, methods, implement or subclass
The text is from its open source code.
TransitionDrawable(Drawable[] layers) Create a new transition drawable with the specified list of layers. |
Drawable | getDrawable(int index) Returns the drawable for the layer at the specified index. |
int | getNumberOfLayers() Returns the number of layers contained within this layer drawable. |
void | invalidateSelf() Use the current Callback implementation to have this Drawable redrawn. |
void | resetTransition() Show only the first layer. |
void | reverseTransition(int duration) Reverses the transition, picking up where the transition currently is. |
void | setCallback(@Nullable Callback cb) Bind a Callback object to this Drawable. |
void | setCrossFadeEnabled(boolean enabled) Enables or disables the cross fade of the drawables. |
void | startTransition(int durationMillis) Begin the second layer on top of the first layer. |