Udostępnij za pośrednictwem


View.IOnClickListener.OnClick(View) Method

Definition

Called when a view has been clicked.

[Android.Runtime.Register("onClick", "(Landroid/view/View;)V", "GetOnClick_Landroid_view_View_Handler:Android.Views.View/IOnClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnClick (Android.Views.View? v);
[<Android.Runtime.Register("onClick", "(Landroid/view/View;)V", "GetOnClick_Landroid_view_View_Handler:Android.Views.View/IOnClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnClick : Android.Views.View -> unit

Parameters

v
View

The view that was clicked.

Attributes

Remarks

Called when a view has been clicked.

Java documentation for android.view.View.OnClickListener.onClick(android.view.View).

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