ListActivity.OnListItemClick(ListView, View, Int32, Int64) ListActivity.OnListItemClick(ListView, View, Int32, Int64) Method

Definition

This method will be called when an item in the list is selected.

[Android.Runtime.Register("onListItemClick", "(Landroid/widget/ListView;Landroid/view/View;IJ)V", "GetOnListItemClick_Landroid_widget_ListView_Landroid_view_View_IJHandler")]
protected virtual void OnListItemClick (Android.Widget.ListView l, Android.Views.View v, int position, long id);
abstract member OnListItemClick : Android.Widget.ListView * Android.Views.View * int * int64 -> unit
override this.OnListItemClick : Android.Widget.ListView * Android.Views.View * int * int64 -> unit

Parameters

l
ListView ListView

The ListView where the click happened

v
View View

The view that was clicked within the ListView

position
Int32 Int32

The position of the view in the list

id
Int64 Int64

The row id of the item that was clicked

Remarks

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