Android Guides | Samples

Android.Views.IMenu.SetGroupCheckable Method

Control whether a particular group of items can show a check mark.

Syntax

[Android.Runtime.Register("setGroupCheckable", "(IZZ)V", "GetSetGroupCheckable_IZZHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Void SetGroupCheckable (Int32 group, Boolean checkable, Boolean exclusive)

See Also

Parameters

group
The group of items to operate on.
checkable
Set to true to allow a check mark, false to disallow. The default is false.
exclusive
If set to true, only one item in this group can be checked at a time; checking an item will automatically uncheck all others in the group. If set to false, each item can be checked independently of the others.

Remarks

Control whether a particular group of items can show a check mark. This is similar to calling IMenuItem.SetCheckable(Boolean) on all of the menu items with the given group identifier, but in addition you can control whether this group contains a mutually-exclusive set items. This should be called after the items of the group have been added to the menu.

[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