Sdílet prostřednictvím


ProgressBar.ProgressTintList Property

Definition

Returns the tint applied to the progress drawable, if specified. -or- Applies a tint to the progress indicator, if one exists, or to the entire progress drawable otherwise.

public virtual Android.Content.Res.ColorStateList? ProgressTintList { [Android.Runtime.Register("getProgressTintList", "()Landroid/content/res/ColorStateList;", "GetGetProgressTintListHandler")] get; [Android.Runtime.Register("setProgressTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetProgressTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getProgressTintList", "()Landroid/content/res/ColorStateList;", "GetGetProgressTintListHandler")>]
[<set: Android.Runtime.Register("setProgressTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetProgressTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.ProgressTintList : Android.Content.Res.ColorStateList with get, set

Property Value

the tint applied to the progress drawable

Attributes

Remarks

Property getter documentation:

Returns the tint applied to the progress drawable, if specified.

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

Property setter documentation:

Applies a tint to the progress indicator, if one exists, or to the entire progress drawable otherwise. Does not modify the current tint mode, which is PorterDuff.Mode#SRC_IN by default.

The progress indicator should be specified as a layer with id android.R.id#progress in a LayerDrawable used as the progress drawable.

Subsequent calls to #setProgressDrawable(Drawable) will automatically mutate the drawable and apply the specified tint and tint mode using Drawable#setTintList(ColorStateList).

Java documentation for android.widget.ProgressBar.setProgressTintList(android.content.res.ColorStateList).

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