Drawable.SetTintMode(PorterDuff+Mode) Method

Definition

Specifies a tint blending mode for this drawable.

C#
[Android.Runtime.Register("setTintMode", "(Landroid/graphics/PorterDuff$Mode;)V", "GetSetTintMode_Landroid_graphics_PorterDuff_Mode_Handler")]
public virtual void SetTintMode (Android.Graphics.PorterDuff.Mode? tintMode);

Parameters

tintMode
PorterDuff.Mode

A Porter-Duff blending mode to apply to the drawable, a value of null sets the default Porter-Diff blending mode value of PorterDuff.Mode#SRC_IN

Attributes

Remarks

Java documentation for android.graphics.drawable.Drawable.setTintMode(android.graphics.Mode).

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

See also