AnimationDrawable.Start Método

Definición

Inicia la animación desde el primer fotograma, en bucle si es necesario.

[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

Implementaciones

Atributos

Comentarios

Inicia la animación desde el primer fotograma, en bucle si es necesario. Este método no tiene ningún efecto si se está ejecutando la animación.

<strong>Note:</strong> Do not call this in the android.app.Activity#onCreate method of your activity, because the AnimationDrawable is not fully attached to the window. Si quieres reproducir la animación inmediatamente sin necesidad de interacción, es posible que quieras llamarla desde el método de la actividad, a la android.app.Activity#onWindowFocusChanged que se llamará cuando Android pone la ventana en el foco.

Java documentación para android.graphics.drawable.AnimationDrawable.start().

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a

Consulte también