Sdílet prostřednictvím


ActionProvider.OnPrepareSubMenu(ISubMenu) Method

Definition

Called to prepare an associated submenu for the menu item backed by this ActionProvider.

[Android.Runtime.Register("onPrepareSubMenu", "(Landroid/view/SubMenu;)V", "GetOnPrepareSubMenu_Landroid_view_SubMenu_Handler")]
public virtual void OnPrepareSubMenu (Android.Views.ISubMenu subMenu);
[<Android.Runtime.Register("onPrepareSubMenu", "(Landroid/view/SubMenu;)V", "GetOnPrepareSubMenu_Landroid_view_SubMenu_Handler")>]
abstract member OnPrepareSubMenu : Android.Views.ISubMenu -> unit
override this.OnPrepareSubMenu : Android.Views.ISubMenu -> unit

Parameters

subMenu
ISubMenu

Submenu that will be displayed

Attributes

Remarks

Called to prepare an associated submenu for the menu item backed by this ActionProvider.

if #hasSubMenu() returns true, this method will be called when the menu item is selected to prepare the submenu for presentation to the user. Apps may use this to create or alter submenu content right before display.

Java documentation for android.view.ActionProvider.onPrepareSubMenu(android.view.SubMenu).

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