Compartilhar via


Animation.SetInterpolator(Context, Int32) Method

Definition

Sets the acceleration curve for this animation.

[Android.Runtime.Register("setInterpolator", "(Landroid/content/Context;I)V", "GetSetInterpolator_Landroid_content_Context_IHandler")]
public virtual void SetInterpolator (Android.Content.Context? context, int resID);
[<Android.Runtime.Register("setInterpolator", "(Landroid/content/Context;I)V", "GetSetInterpolator_Landroid_content_Context_IHandler")>]
abstract member SetInterpolator : Android.Content.Context * int -> unit
override this.SetInterpolator : Android.Content.Context * int -> unit

Parameters

context
Context

The application environment

resID
Int32

The resource identifier of the interpolator to load

Attributes

Remarks

Sets the acceleration curve for this animation. The interpolator is loaded as a resource from the specified context.

Java documentation for android.view.animation.Animation.setInterpolator(android.content.Context, int).

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