Drawable.SetTintList(ColorStateList) Method
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.
Specifies tint color for this drawable as a color state list.
[Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetTintList_Landroid_content_res_ColorStateList_Handler")]
public virtual void SetTintList(Android.Content.Res.ColorStateList? tint);
[<Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetTintList_Landroid_content_res_ColorStateList_Handler")>]
abstract member SetTintList : Android.Content.Res.ColorStateList -> unit
override this.SetTintList : Android.Content.Res.ColorStateList -> unit
- tint
- ColorStateList
Color state list to use for tinting this drawable, or
null
to clear the tint
- Attributes
Specifies tint color for this drawable as a color state list.
A Drawable's drawing content will be blended together with its tint before it is drawn to the screen. This functions similarly to #setColorFilter(int, PorterDuff.Mode)
.
<strong>Note:</strong> Setting a color filter via #setColorFilter(ColorFilter)
or #setColorFilter(int, PorterDuff.Mode)
overrides tint.
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.
Produkt | Wersje |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |
- SetTint(Int32)
- <xref:Android.Graphics.Drawables.Drawable.SetTintMode(.Mode)>