Android Guides | Samples

Android.App.Dialog.OnCreatePanelMenu Method

Initialize the contents of the menu for panel 'featureId'.


[Android.Runtime.Register("onCreatePanelMenu", "(ILandroid/view/Menu;)Z", "GetOnCreatePanelMenu_ILandroid_view_Menu_Handler")]
public virtual Boolean OnCreatePanelMenu (Int32 featureId, IMenu menu)

See Also


The panel being created.
The menu inside the panel.


Initialize the contents of the menu for panel 'featureId'. This is called if onCreatePanelView() returns null, giving you a standard menu in which you can place your items. It is only called once for the panel, the first time it is shown.

You can safely hold on to menu (and any items created from it), making modifications to it as desired, until the next time onCreatePanelMenu() is called for this feature.

[Android Documentation]


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