Freigeben über


ProgressBar.IndeterminateDrawable Property

Definition

Get the drawable used to draw the progress bar in indeterminate mode. -or- Define the drawable used to draw the progress bar in indeterminate mode.

public virtual Android.Graphics.Drawables.Drawable? IndeterminateDrawable { [Android.Runtime.Register("getIndeterminateDrawable", "()Landroid/graphics/drawable/Drawable;", "GetGetIndeterminateDrawableHandler")] get; [Android.Runtime.Register("setIndeterminateDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIndeterminateDrawable_Landroid_graphics_drawable_Drawable_Handler")] set; }
[<get: Android.Runtime.Register("getIndeterminateDrawable", "()Landroid/graphics/drawable/Drawable;", "GetGetIndeterminateDrawableHandler")>]
[<set: Android.Runtime.Register("setIndeterminateDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIndeterminateDrawable_Landroid_graphics_drawable_Drawable_Handler")>]
member this.IndeterminateDrawable : Android.Graphics.Drawables.Drawable with get, set

Property Value

a android.graphics.drawable.Drawable instance

Attributes

Remarks

Property getter documentation:

Get the drawable used to draw the progress bar in indeterminate mode.

Java documentation for android.widget.ProgressBar.getIndeterminateDrawable().

Property setter documentation:

Define the drawable used to draw the progress bar in indeterminate mode.

For the Drawable to animate, it must implement Animatable, or override Drawable#onLevelChange(int). A Drawable that implements Animatable will be animated via that interface and therefore provides the greatest amount of customization. A Drawable that only overrides onLevelChange(int) is animated directly by ProgressBar and only the animation android.R.styleable#ProgressBar_indeterminateDuration duration, android.R.styleable#ProgressBar_indeterminateBehavior repeating behavior, and #setInterpolator(Interpolator) interpolator can be modified, and only before the indeterminate animation begins.

Java documentation for android.widget.ProgressBar.setIndeterminateDrawable(android.graphics.drawable.Drawable).

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

See also