Compartilhar via


ProgressBar.SetInterpolator(Context, Int32) Method

Definition

Sets the acceleration curve for the indeterminate 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 the indeterminate animation.

The interpolator is loaded as a resource from the specified context. Defaults to a linear interpolation.

The interpolator only affects the indeterminate animation if the #setIndeterminateDrawable(Drawable) supplied indeterminate drawable does not implement Animatable.

This call must be made before the indeterminate animation starts for it to have an affect.

Java documentation for android.widget.ProgressBar.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