Compartir a través de


IMenu.SetGroupCheckable(Int32, Boolean, Boolean) Method

Definition

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

[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 (int group, bool checkable, bool exclusive);
[<Android.Runtime.Register("setGroupCheckable", "(IZZ)V", "GetSetGroupCheckable_IZZHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetGroupCheckable : int * bool * bool -> unit

Parameters

group
Int32

The group of items to operate on.

checkable
Boolean

Set to true to allow a check mark, false to disallow. The default is false.

exclusive
Boolean

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.

Attributes

Remarks

Control whether a particular group of items can show a check mark. This is similar to calling MenuItem#setCheckable 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.

Java documentation for android.view.Menu.setGroupCheckable(int, boolean, boolean).

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

See also