Udostępnij za pośrednictwem


AbsListView.SetItemChecked(Int32, Boolean) Method

Definition

Sets the checked state of the specified position.

[Android.Runtime.Register("setItemChecked", "(IZ)V", "GetSetItemChecked_IZHandler")]
public virtual void SetItemChecked (int position, bool value);
[<Android.Runtime.Register("setItemChecked", "(IZ)V", "GetSetItemChecked_IZHandler")>]
abstract member SetItemChecked : int * bool -> unit
override this.SetItemChecked : int * bool -> unit

Parameters

position
Int32

The item whose checked state is to be checked

value
Boolean

The new checked state for the item

Attributes

Remarks

Sets the checked state of the specified position. The is only valid if the choice mode has been set to #CHOICE_MODE_SINGLE or #CHOICE_MODE_MULTIPLE.

Java documentation for android.widget.AbsListView.setItemChecked(int, 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