Android Guides | Samples

Android.Graphics.Drawables.Drawable.SetTintMode Method

Specifies a tint blending mode for this drawable.

Syntax

[Android.Runtime.Register("setTintMode", "(Landroid/graphics/PorterDuff$Mode;)V", "GetSetTintMode_Landroid_graphics_PorterDuff_Mode_Handler")]
public virtual Void SetTintMode (PorterDuff+Mode tintMode)

See Also

Parameters

tintMode
A Porter-Duff blending mode

Remarks

Specifies a tint blending mode for this drawable.

Defines how this drawable's tint color should be blended into the drawable before it is drawn to screen. Default tint mode is NoType:android/graphics/PorterDuff$Mode;Href=../../../../reference/android/graphics/PorterDuff.Mode.html#SRC_IN.

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