次の方法で共有


ListFragment.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")]
public virtual void OnListItemClick (Android.Widget.ListView? l, Android.Views.View? v, int position, long id);
[<Android.Runtime.Register("onListItemClick", "(Landroid/widget/ListView;Landroid/view/View;IJ)V", "GetOnListItemClick_Landroid_widget_ListView_Landroid_view_View_IJHandler")>]
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

The ListView where the click happened

v
View

The view that was clicked within the ListView

position
Int32

The position of the view in the list

id
Int64

The row id of the item that was clicked

Attributes

Remarks

This method will be called when an item in the list is selected. Subclasses should override. Subclasses can call getListView().getItemAtPosition(position) if they need to access the data associated with the selected item.

Java documentation for android.app.ListFragment.onListItemClick(android.widget.ListView, android.view.View, int, long).

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