Icon.SetTintList(ColorStateList) Method

Definition

Store a color to use whenever this Icon is drawn.

[Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public Android.Graphics.Drawables.Icon? SetTintList (Android.Content.Res.ColorStateList? tintList);
[<Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
member this.SetTintList : Android.Content.Res.ColorStateList -> Android.Graphics.Drawables.Icon

Parameters

tintList
ColorStateList

as in Drawable#setTintList(ColorStateList), null to remove tint

Returns

Icon

this same object, for use in chained construction

Attributes

Remarks

Java documentation for android.graphics.drawable.Icon.setTintList(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