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

Syntax

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/view/MenuItem;", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetIcon (Android.Graphics.Drawables.Drawable icon)

Parameters

icon
The new icon (as a Drawable) 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.

[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