Android.Views.IMenuItem.SetIcon Method
Change the icon associated with this item.

Syntax

[Android.Runtime.Register("setIcon", "(I)Landroid/view/MenuItem;", "GetSetIcon_IHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetIcon (int iconRes)

Parameters

iconRes
The new icon (as a resource ID) to be displayed.

Returns

Documentation for this section has not yet been entered.

Remarks

Change the icon associated with this item. This icon will not always be shown, so the title should be sufficient in describing this item. See Android.Views.Menu for the menu types that support icons.

This method will set the resource ID of the icon which will be used to lazily get the Drawable when this item is being shown.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1