Sdílet prostřednictvím


View.Animation Property

Definition

Get the animation currently associated with this view. -or- Sets the next animation to play for this view.

public virtual Android.Views.Animations.Animation? Animation { [Android.Runtime.Register("getAnimation", "()Landroid/view/animation/Animation;", "GetGetAnimationHandler")] get; [Android.Runtime.Register("setAnimation", "(Landroid/view/animation/Animation;)V", "GetSetAnimation_Landroid_view_animation_Animation_Handler")] set; }
[<get: Android.Runtime.Register("getAnimation", "()Landroid/view/animation/Animation;", "GetGetAnimationHandler")>]
[<set: Android.Runtime.Register("setAnimation", "(Landroid/view/animation/Animation;)V", "GetSetAnimation_Landroid_view_animation_Animation_Handler")>]
member this.Animation : Android.Views.Animations.Animation with get, set

Property Value

The animation that is currently playing or scheduled to play for this view.

Attributes

Remarks

Property getter documentation:

Get the animation currently associated with this view.

Java documentation for android.view.View.getAnimation().

Property setter documentation:

Sets the next animation to play for this view. If you want the animation to play immediately, use #startAnimation(android.view.animation.Animation) instead. This method provides allows fine-grained control over the start time and invalidation, but you must make sure that 1) the animation has a start time set, and 2) the view's parent (which controls animations on its children) will be invalidated when the animation is supposed to start.

Java documentation for android.view.View.setAnimation(android.view.animation.Animation).

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