AnimatedStateListDrawable.AddTransition(Int32, Int32, Object, Boolean) Method

Definition

Adds a new transition between keyframes.

[Android.Runtime.Register("addTransition", "(IILandroid/graphics/drawable/Drawable;Z)V", "GetAddTransition_IILandroid_graphics_drawable_Drawable_ZHandler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.graphics.drawable.Drawable & android.graphics.drawable.Animatable" })]
public virtual void AddTransition (int fromId, int toId, Java.Lang.Object transition, bool reversible);
[<Android.Runtime.Register("addTransition", "(IILandroid/graphics/drawable/Drawable;Z)V", "GetAddTransition_IILandroid_graphics_drawable_Drawable_ZHandler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends android.graphics.drawable.Drawable & android.graphics.drawable.Animatable" })>]
abstract member AddTransition : int * int * Java.Lang.Object * bool -> unit
override this.AddTransition : int * int * Java.Lang.Object * bool -> unit

Parameters

fromId
Int32

Unique identifier of the starting keyframe

toId
Int32

Unique identifier of the ending keyframe

transition
Object

An Animatable drawable to use as a transition, may not be null

reversible
Boolean

Whether the transition can be reversed

Attributes

Remarks

Adds a new transition between keyframes.

Java documentation for android.graphics.drawable.AnimatedStateListDrawable.addTransition(int, int, T, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to