다음을 통해 공유


AbsListView.CheckedItemPosition Property

Definition

Returns the currently checked item.

public virtual int CheckedItemPosition { [Android.Runtime.Register("getCheckedItemPosition", "()I", "GetGetCheckedItemPositionHandler")] get; }
[<get: Android.Runtime.Register("getCheckedItemPosition", "()I", "GetGetCheckedItemPositionHandler")>]
member this.CheckedItemPosition : int

Property Value

The position of the currently checked item or #INVALID_POSITION if nothing is selected

Attributes

Remarks

Returns the currently checked item. The result is only valid if the choice mode has been set to #CHOICE_MODE_SINGLE.

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

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