Partager via


LayoutTransition.SetDuration Method

Definition

Overloads

SetDuration(LayoutTransitionType, Int64)

Sets the duration on one of the animation objects used by this transition.

SetDuration(Int64)

Sets the duration to be used by all animations of this transition object.

SetDuration(LayoutTransitionType, Int64)

Sets the duration on one of the animation objects used by this transition.

[Android.Runtime.Register("setDuration", "(IJ)V", "GetSetDuration_IJHandler")]
public virtual void SetDuration (Android.Animation.LayoutTransitionType transitionType, long duration);
[<Android.Runtime.Register("setDuration", "(IJ)V", "GetSetDuration_IJHandler")>]
abstract member SetDuration : Android.Animation.LayoutTransitionType * int64 -> unit
override this.SetDuration : Android.Animation.LayoutTransitionType * int64 -> unit

Parameters

transitionType
LayoutTransitionType

One of #CHANGE_APPEARING, #CHANGE_DISAPPEARING, #CHANGING, #APPEARING, or #DISAPPEARING, which determines the animation whose duration is being set.

duration
Int64

The length of time, in milliseconds, that the specified animation should run.

Attributes

Remarks

Sets the duration on one of the animation objects used by this transition. The transitionType parameter determines the animation whose duration is being set.

Java documentation for android.animation.LayoutTransition.setDuration(int, 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.

See also

Applies to

SetDuration(Int64)

Sets the duration to be used by all animations of this transition object.

[Android.Runtime.Register("setDuration", "(J)V", "GetSetDuration_JHandler")]
public virtual void SetDuration (long duration);
[<Android.Runtime.Register("setDuration", "(J)V", "GetSetDuration_JHandler")>]
abstract member SetDuration : int64 -> unit
override this.SetDuration : int64 -> unit

Parameters

duration
Int64

The length of time, in milliseconds, that the transition animations should last.

Attributes

Remarks

Sets the duration to be used by all animations of this transition object. If you want to set the duration of just one of the animations in particular, use the #setDuration(int, long) method.

Java documentation for android.animation.LayoutTransition.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