Android Guides | Samples

Android.Views.IMenu.AddSubMenu Method

Add a new sub-menu to the menu.

Syntax

[Android.Runtime.Register("addSubMenu", "(I)Landroid/view/SubMenu;", "GetAddSubMenu_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public ISubMenu AddSubMenu (Int32 titleRes)

Parameters

titleRes
Resource identifier of title string.

Remarks

Add a new sub-menu to the menu. This item displays the given title for its label. To modify other attributes on the submenu's menu item, use ISubMenu.Item.

[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