Android.Views.MenuInflater.Inflate Method
Inflate a menu hierarchy from the specified XML resource.

Syntax

[Android.Runtime.Register("inflate", "(ILandroid/view/Menu;)V", "GetInflate_ILandroid_view_Menu_Handler")]
public virtual void Inflate (int menuRes, IMenu menu)

Parameters

menuRes
Resource ID for an XML layout resource to load (e.g., R.menu.main_activity)
menu
The Menu to inflate into. The items and submenus will be added to this Menu.

Remarks

Inflate a menu hierarchy from the specified XML resource. Throws Android.Views.InflateException if there is an error.

[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