Android Guides | Samples

Android.Graphics.Drawables.Drawable.SetTintList Method

Specifies tint color for this drawable as a color state list.

Syntax

[Android.Runtime.Register("setTintList", "(Landroid/content/res/ColorStateList;)V", "GetSetTintList_Landroid_content_res_ColorStateList_Handler")]
public virtual Void SetTintList (ColorStateList tint)

See Also

Parameters

tint
Color state list to use for tinting this drawable, or null to clear the tint

Remarks

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 Drawable.SetColorFilter(Android.Graphics.Color, .Mode).

Note: Setting a color filter via Drawable.SetColorFilter(ColorFilter) or Drawable.SetColorFilter(Android.Graphics.Color, .Mode) overrides tint.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1