共用方式為


AbsListView.CheckedItemCount Property

Definition

Returns the number of items currently selected.

public virtual int CheckedItemCount { [Android.Runtime.Register("getCheckedItemCount", "()I", "GetGetCheckedItemCountHandler")] get; }
[<get: Android.Runtime.Register("getCheckedItemCount", "()I", "GetGetCheckedItemCountHandler")>]
member this.CheckedItemCount : int

Property Value

The number of items currently selected

Attributes

Remarks

Returns the number of items currently selected. This will only be valid if the choice mode is not #CHOICE_MODE_NONE (default).

To determine the specific items that are currently selected, use one of the getChecked* methods.

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

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