Java android.graphics.drawable TransitionDrawable fields, constructors, methods, implement or subclass

Example usage for Java android.graphics.drawable TransitionDrawable fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics.drawable TransitionDrawable.

The text is from its open source code.

Constructor

TransitionDrawable(Drawable[] layers)
Create a new transition drawable with the specified list of layers.

Method

DrawablegetDrawable(int index)
Returns the drawable for the layer at the specified index.
intgetNumberOfLayers()
Returns the number of layers contained within this layer drawable.
voidinvalidateSelf()
Use the current Callback implementation to have this Drawable redrawn.
voidresetTransition()
Show only the first layer.
voidreverseTransition(int duration)
Reverses the transition, picking up where the transition currently is.
voidsetCallback(@Nullable Callback cb)
Bind a Callback object to this Drawable.
voidsetCrossFadeEnabled(boolean enabled)
Enables or disables the cross fade of the drawables.
voidstartTransition(int durationMillis)
Begin the second layer on top of the first layer.