次の方法で共有


Activity.OnCreatePanelMenu(Int32, IMenu) Method

Definition

Default implementation of android.view.Window.Callback#onCreatePanelMenu for activities.

[Android.Runtime.Register("onCreatePanelMenu", "(ILandroid/view/Menu;)Z", "GetOnCreatePanelMenu_ILandroid_view_Menu_Handler")]
public virtual bool OnCreatePanelMenu (int featureId, Android.Views.IMenu menu);
[<Android.Runtime.Register("onCreatePanelMenu", "(ILandroid/view/Menu;)Z", "GetOnCreatePanelMenu_ILandroid_view_Menu_Handler")>]
abstract member OnCreatePanelMenu : int * Android.Views.IMenu -> bool
override this.OnCreatePanelMenu : int * Android.Views.IMenu -> bool

Parameters

featureId
Int32

The panel being created.

menu
IMenu

The menu inside the panel.

Returns

Implements

Attributes

Remarks

Default implementation of android.view.Window.Callback#onCreatePanelMenu for activities. This calls through to the new #onCreateOptionsMenu method for the android.view.Window#FEATURE_OPTIONS_PANEL panel, so that subclasses of Activity don't need to deal with feature codes.

Java documentation for android.app.Activity.onCreatePanelMenu(int, android.view.Menu).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to