Dela via


AbsListView.PointToRowId(Int32, Int32) Method

Definition

Maps a point to a the rowId of the item which intersects that point.

[Android.Runtime.Register("pointToRowId", "(II)J", "GetPointToRowId_IIHandler")]
public virtual long PointToRowId (int x, int y);
[<Android.Runtime.Register("pointToRowId", "(II)J", "GetPointToRowId_IIHandler")>]
abstract member PointToRowId : int * int -> int64
override this.PointToRowId : int * int -> int64

Parameters

x
Int32

X in local coordinate

y
Int32

Y in local coordinate

Returns

The rowId of the item which contains the specified point, or #INVALID_ROW_ID if the point does not intersect an item.

Attributes

Remarks

Maps a point to a the rowId of the item which intersects that point.

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