Udostępnij za pośrednictwem


LayoutAnimationController.SetAnimation(Context, Int32) Method

Definition

Sets the animation to be run on each child of the view group on which this layout animation controller is .

[Android.Runtime.Register("setAnimation", "(Landroid/content/Context;I)V", "GetSetAnimation_Landroid_content_Context_IHandler")]
public virtual void SetAnimation (Android.Content.Context? context, int resourceID);
[<Android.Runtime.Register("setAnimation", "(Landroid/content/Context;I)V", "GetSetAnimation_Landroid_content_Context_IHandler")>]
abstract member SetAnimation : Android.Content.Context * int -> unit
override this.SetAnimation : Android.Content.Context * int -> unit

Parameters

context
Context

the context from which the animation must be inflated

resourceID
Int32

the resource identifier of the animation

Attributes

Remarks

Sets the animation to be run on each child of the view group on which this layout animation controller is .

Java documentation for android.view.animation.LayoutAnimationController.setAnimation(android.content.Context, 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

See also