AnimationDrawable.AddFrame(Drawable, Int32) Method

Definition

Adds a frame to the animation

[Android.Runtime.Register("addFrame", "(Landroid/graphics/drawable/Drawable;I)V", "GetAddFrame_Landroid_graphics_drawable_Drawable_IHandler")]
public virtual void AddFrame (Android.Graphics.Drawables.Drawable frame, int duration);
[<Android.Runtime.Register("addFrame", "(Landroid/graphics/drawable/Drawable;I)V", "GetAddFrame_Landroid_graphics_drawable_Drawable_IHandler")>]
abstract member AddFrame : Android.Graphics.Drawables.Drawable * int -> unit
override this.AddFrame : Android.Graphics.Drawables.Drawable * int -> unit

Parameters

frame
Drawable

The frame to add

duration
Int32

How long in milliseconds the frame should appear

Attributes

Remarks

Adds a frame to the animation

Java documentation for android.graphics.drawable.AnimationDrawable.addFrame(android.graphics.drawable.Drawable, int).

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