Freigeben über


ProgressBar.ProgressBackgroundTintList Property

Definition

Returns the tint applied to the progress background, if specified. -or- Applies a tint to the progress background, if one exists.

public virtual Android.Content.Res.ColorStateList? ProgressBackgroundTintList { [Android.Runtime.Register("getProgressBackgroundTintList", "()Landroid/content/res/ColorStateList;", "GetGetProgressBackgroundTintListHandler")] get; [Android.Runtime.Register("setProgressBackgroundTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetProgressBackgroundTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getProgressBackgroundTintList", "()Landroid/content/res/ColorStateList;", "GetGetProgressBackgroundTintListHandler")>]
[<set: Android.Runtime.Register("setProgressBackgroundTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetProgressBackgroundTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.ProgressBackgroundTintList : Android.Content.Res.ColorStateList with get, set

Property Value

the tint applied to the progress background

Attributes

Remarks

Property getter documentation:

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

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

Property setter documentation:

Applies a tint to the progress background, if one exists. Does not modify the current tint mode, which is PorterDuff.Mode#SRC_ATOP by default.

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

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

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