AnimatedStateListDrawable.AddTransition(Int32, Int32, Object, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.