Sdílet prostřednictvím


BaseAdapter.GetItemId(Int32) Method

Definition

Get the row id associated with the specified position in the list.

[Android.Runtime.Register("getItemId", "(I)J", "GetGetItemId_IHandler")]
public abstract long GetItemId (int position);
[<Android.Runtime.Register("getItemId", "(I)J", "GetGetItemId_IHandler")>]
abstract member GetItemId : int -> int64

Parameters

position
Int32

The position of the item within the adapter's data set whose row id we want.

Returns

The id of the item at the specified position.

Implements

Attributes

Remarks

Get the row id associated with the specified position in the list.

Java documentation for android.widget.Adapter.getItemId(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