AnimationDrawable.Start 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.
Starts the animation from the first frame, looping if necessary.
[Android.Runtime.Register("start", "()V", "GetStartHandler")]
public virtual void Start ();
[<Android.Runtime.Register("start", "()V", "GetStartHandler")>]
abstract member Start : unit -> unit
override this.Start : unit -> unit
Implements
- Attributes
Remarks
Starts the animation from the first frame, looping if necessary. This method has no effect if the animation is running.
<strong>Note:</strong> Do not call this in the android.app.Activity#onCreate
method of your activity, because the 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
method in your activity, which will get called when Android brings your window into focus.
Java documentation for android.graphics.drawable.AnimationDrawable.start()
.
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.