다음을 통해 공유


ViewPropertyAnimator.WithStartAction(IRunnable) Method

Definition

Specifies an action to take place when the next animation runs.

[Android.Runtime.Register("withStartAction", "(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;", "GetWithStartAction_Ljava_lang_Runnable_Handler")]
public virtual Android.Views.ViewPropertyAnimator WithStartAction (Java.Lang.IRunnable? runnable);
[<Android.Runtime.Register("withStartAction", "(Ljava/lang/Runnable;)Landroid/view/ViewPropertyAnimator;", "GetWithStartAction_Ljava_lang_Runnable_Handler")>]
abstract member WithStartAction : Java.Lang.IRunnable -> Android.Views.ViewPropertyAnimator
override this.WithStartAction : Java.Lang.IRunnable -> Android.Views.ViewPropertyAnimator

Parameters

runnable
IRunnable

The action to run when the next animation starts.

Returns

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

Attributes

Remarks

Specifies an action to take place when the next animation runs. If there is a #setStartDelay(long) startDelay set on this ViewPropertyAnimator, then the action will run after that startDelay expires, when the actual animation begins. This method, along with #withEndAction(Runnable), is intended to help facilitate choreographing ViewPropertyAnimator animations with other animations or actions in the application.

Java documentation for android.view.ViewPropertyAnimator.withStartAction(java.lang.Runnable).

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