Sdílet prostřednictvím


Drawable.SetTintMode(PorterDuff+Mode) Method

Definition

Specifies a tint blending mode for this drawable.

[Android.Runtime.Register("setTintMode", "(Landroid/graphics/PorterDuff$Mode;)V", "GetSetTintMode_Landroid_graphics_PorterDuff_Mode_Handler")]
public virtual void SetTintMode (Android.Graphics.PorterDuff.Mode? tintMode);
[<Android.Runtime.Register("setTintMode", "(Landroid/graphics/PorterDuff$Mode;)V", "GetSetTintMode_Landroid_graphics_PorterDuff_Mode_Handler")>]
abstract member SetTintMode : Android.Graphics.PorterDuff.Mode -> unit
override this.SetTintMode : Android.Graphics.PorterDuff.Mode -> unit

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

See also