ViewPropertyAnimator.SetDuration(Int64) Method

Definition

Sets the duration for the underlying animator that animates the requested properties.

[Android.Runtime.Register("setDuration", "(J)Landroid/view/ViewPropertyAnimator;", "GetSetDuration_JHandler")]
public virtual Android.Views.ViewPropertyAnimator SetDuration (long duration);
[<Android.Runtime.Register("setDuration", "(J)Landroid/view/ViewPropertyAnimator;", "GetSetDuration_JHandler")>]
abstract member SetDuration : int64 -> Android.Views.ViewPropertyAnimator
override this.SetDuration : int64 -> Android.Views.ViewPropertyAnimator

Parameters

duration
Int64

The length of ensuing property animations, in milliseconds. The value cannot be negative.

Returns

This object, allowing calls to methods in this class to be chained.

Attributes

Remarks

Sets the duration for the underlying animator that animates the requested properties. By default, the animator uses the default value for ValueAnimator. Calling this method will cause the declared value to be used instead.

Java documentation for android.view.ViewPropertyAnimator.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