Language

PreferenceScreen.OnItemClick(AdapterView, View, Int32, Int64) Method

Definition

Passes a list item click to the corresponding preference.

[Android.Runtime.Register("onItemClick", "(Landroid/widget/AdapterView;Landroid/view/View;IJ)V", "")]
public void OnItemClick(Android.Widget.AdapterView? parent, Android.Views.View? view, int position, long id);
[<Android.Runtime.Register("onItemClick", "(Landroid/widget/AdapterView;Landroid/view/View;IJ)V", "")>]
abstract member OnItemClick : Android.Widget.AdapterView * Android.Views.View * int * int64 -> unit
override this.OnItemClick : Android.Widget.AdapterView * Android.Views.View * int * int64 -> unit

Parameters

parent
AdapterView

The adapter view that received the click.

view
View

The view for the clicked item.

position
Int32

The clicked item position, including any header views in a list view.

id
Int64

The row identifier of the clicked item.

Implements

Attributes

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