Aracılığıyla paylaş


AdapterView.SetSelection(Int32) Method

Definition

Sets the currently selected item.

[Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")]
public abstract void SetSelection (int position);
[<Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")>]
abstract member SetSelection : int -> unit

Parameters

position
Int32

Index (starting at 0) of the data item to be selected.

Attributes

Remarks

Sets the currently selected item. To support accessibility subclasses that override this method must invoke the overridden super method first.

Java documentation for android.widget.AdapterView.setSelection(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