Android.Widget.Toolbar.SetNavigationIcon Method
Set the icon to use for the toolbar's navigation button.

Syntax

[Android.Runtime.Register("setNavigationIcon", "(I)V", "GetSetNavigationIcon_IHandler")]
public virtual void SetNavigationIcon (int resId)

Parameters

resId
Resource ID of a drawable to set

Remarks

Set the icon to use for the toolbar's navigation button.

The navigation button appears at the start of the toolbar if present. Setting an icon will make the navigation button visible.

If you use a navigation icon you should also set a description for its action using Toolbar.SetNavigationContentDescription(int). This is used for accessibility and tooltips.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0