共用方式為


IMenuItem.SetIconTintMode(PorterDuff+Mode) Method

Definition

Specifies the blending mode used to apply the tint specified by #setIconTintList(ColorStateList) to this item's icon.

[Android.Runtime.Register("setIconTintMode", "(Landroid/graphics/PorterDuff$Mode;)Landroid/view/MenuItem;", "GetSetIconTintMode_Landroid_graphics_PorterDuff_Mode_Handler:Android.Views.IMenuItem, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Android.Views.IMenuItem SetIconTintMode (Android.Graphics.PorterDuff.Mode? tintMode);
[<Android.Runtime.Register("setIconTintMode", "(Landroid/graphics/PorterDuff$Mode;)Landroid/view/MenuItem;", "GetSetIconTintMode_Landroid_graphics_PorterDuff_Mode_Handler:Android.Views.IMenuItem, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member SetIconTintMode : Android.Graphics.PorterDuff.Mode -> Android.Views.IMenuItem
override this.SetIconTintMode : Android.Graphics.PorterDuff.Mode -> Android.Views.IMenuItem

Parameters

tintMode
PorterDuff.Mode

the blending mode used to apply the tint, may be null to clear tint

Returns

Attributes

Remarks

Java documentation for android.view.MenuItem.setIconTintMode(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