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

Syntax

[Android.Runtime.Register("setIcon", "(I)V", "GetSetIcon_IHandler")]
public abstract void SetIcon (int resId)

See Also

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

Parameters

resId
Resource ID of a 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