次の方法で共有


AdapterView.PerformItemClick(View, Int32, Int64) Method

Definition

Call the OnItemClickListener, if it is defined.

[Android.Runtime.Register("performItemClick", "(Landroid/view/View;IJ)Z", "GetPerformItemClick_Landroid_view_View_IJHandler")]
public virtual bool PerformItemClick (Android.Views.View? view, int position, long id);
[<Android.Runtime.Register("performItemClick", "(Landroid/view/View;IJ)Z", "GetPerformItemClick_Landroid_view_View_IJHandler")>]
abstract member PerformItemClick : Android.Views.View * int * int64 -> bool
override this.PerformItemClick : Android.Views.View * int * int64 -> bool

Parameters

view
View

The view within the AdapterView that was clicked.

position
Int32

The position of the view in the adapter.

id
Int64

The row id of the item that was clicked.

Returns

True if there was an assigned OnItemClickListener that was called, false otherwise is returned.

Attributes

Remarks

Call the OnItemClickListener, if it is defined. Performs all normal actions associated with clicking: reporting accessibility event, playing a sound, etc.

Java documentation for android.widget.AdapterView.performItemClick(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