Android.Graphics.Drawables.AnimationDrawable.Start Method

Syntax

[Android.Runtime.Register("start", "()V", "GetStartHandler")]
public virtual void Start ()

See Also

AnimationDrawable.IsRunning
AnimationDrawable.Stop

Remarks

Starts the animation, looping if necessary. This method has no effect if the animation is running. Do not call this in the Android.App.Activity.OnCreate(Android.OS.Bundle) method of your activity, because the Android.Graphics.Drawables.AnimationDrawable is not yet fully attached to the window. If you want to play the animation immediately, without requiring interaction, then you might want to call it from the Android.App.Activity.OnWindowFocusChanged(bool) method in your activity, which will get called when Android brings your window into focus.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1