Share via


Animation.Duration Property

Definition

How long this animation should last -or- How long this animation should last.

public virtual long Duration { [Android.Runtime.Register("getDuration", "()J", "GetGetDurationHandler")] get; [Android.Runtime.Register("setDuration", "(J)V", "GetSetDuration_JHandler")] set; }
[<get: Android.Runtime.Register("getDuration", "()J", "GetGetDurationHandler")>]
[<set: Android.Runtime.Register("setDuration", "(J)V", "GetSetDuration_JHandler")>]
member this.Duration : int64 with get, set

Property Value

the duration in milliseconds of the animation

Attributes

Exceptions

if the duration is

Remarks

Property getter documentation:

How long this animation should last

Java documentation for android.view.animation.Animation.getDuration().

Property setter documentation:

How long this animation should last. The duration cannot be negative.

Java documentation for android.view.animation.Animation.setDuration(long).

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