CompoundButton.ButtonTintList Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Applies a tint to the button drawable.
public virtual Android.Content.Res.ColorStateList? ButtonTintList { [Android.Runtime.Register("getButtonTintList", "()Landroid/content/res/ColorStateList;", "GetGetButtonTintListHandler")] get; [Android.Runtime.Register("setButtonTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetButtonTintList_Landroid_content_res_ColorStateList_Handler")] set; }
[<get: Android.Runtime.Register("getButtonTintList", "()Landroid/content/res/ColorStateList;", "GetGetButtonTintListHandler")>]
[<set: Android.Runtime.Register("setButtonTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetButtonTintList_Landroid_content_res_ColorStateList_Handler")>]
member this.ButtonTintList : Android.Content.Res.ColorStateList with get, set
Property Value
the tint applied to the button drawable
- Attributes
Remarks
Property getter documentation:
Java documentation for android.widget.CompoundButton.getButtonTintList()
.
Property setter documentation:
Applies a tint to the button drawable. Does not modify the current tint mode, which is PorterDuff.Mode#SRC_IN
by default.
Subsequent calls to #setButtonDrawable(Drawable)
will automatically mutate the drawable and apply the specified tint and tint mode using Drawable#setTintList(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.