Android.App.ActionBar.SetIcon Method
Set the icon to display in the 'home' section of the action bar.

Syntax

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")]
public abstract void SetIcon (Android.Graphics.Drawables.Drawable icon)

See Also

ActionBar.SetDisplayUseLogoEnabled(bool)
ActionBar.SetDisplayShowHomeEnabled(bool)

Parameters

icon
Drawable to show as an icon.

Remarks

Set the icon to display in the 'home' section of the action bar. The action bar will use an icon specified by its style or the activity icon by default. Whether the home section shows an icon or logo is controlled by the display option ActionBar.DISPLAY_USE_LOGO.

[Android Documentation]

Requirements

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