次の方法で共有


ProgressBar.SecondaryProgressTintList Property

Definition

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

public virtual Android.Content.Res.ColorStateList? SecondaryProgressTintList { [Android.Runtime.Register("getSecondaryProgressTintList", "()Landroid/content/res/ColorStateList;", "GetGetSecondaryProgressTintListHandler")] get; [Android.Runtime.Register("setSecondaryProgressTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetSecondaryProgressTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getSecondaryProgressTintList", "()Landroid/content/res/ColorStateList;", "GetGetSecondaryProgressTintListHandler")>]
[<set: Android.Runtime.Register("setSecondaryProgressTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetSecondaryProgressTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.SecondaryProgressTintList : Android.Content.Res.ColorStateList with get, set

Property Value

the tint applied to the secondary progress drawable

Attributes

Remarks

Property getter documentation:

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

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

Property setter documentation:

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

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

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

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