setIconTintList

@NonNull
abstract fun setIconTintList(@Nullable tint: @Nullable ColorStateList): @NonNull MenuItem(source)

Applies a tint to this item's icon. Does not modify the current tint mode, which is SRC_IN by default.

Subsequent calls to setIcon or setIcon will automatically mutate the icon and apply the specified tint and tint mode.

Parameters

tint

the tint to apply, may be null to clear tint

See also