AbsListView.ChoiceMode Property

Definition

Defines the choice behavior for the List.

public virtual Android.Widget.ChoiceMode ChoiceMode { [Android.Runtime.Register("getChoiceMode", "()I", "GetGetChoiceModeHandler")] get; [Android.Runtime.Register("setChoiceMode", "(I)V", "GetSetChoiceMode_IHandler")] set; }
[<get: Android.Runtime.Register("getChoiceMode", "()I", "GetGetChoiceModeHandler")>]
[<set: Android.Runtime.Register("setChoiceMode", "(I)V", "GetSetChoiceMode_IHandler")>]
member this.ChoiceMode : Android.Widget.ChoiceMode with get, set

Property Value

The current choice mode

Attributes

Remarks

Property getter documentation:

Java documentation for android.widget.AbsListView.getChoiceMode().

Property setter documentation:

Defines the choice behavior for the List. By default, Lists do not have any choice behavior (#CHOICE_MODE_NONE). By setting the choiceMode to #CHOICE_MODE_SINGLE, the List allows up to one item to be in a chosen state. By setting the choiceMode to #CHOICE_MODE_MULTIPLE, the list allows any number of items to be chosen.

Java documentation for android.widget.AbsListView.setChoiceMode(int).

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