Udostępnij za pośrednictwem


SearchView.SetOnSearchClickListener(View+IOnClickListener) Method

Definition

Sets a listener to inform when the search button is pressed.

[Android.Runtime.Register("setOnSearchClickListener", "(Landroid/view/View$OnClickListener;)V", "GetSetOnSearchClickListener_Landroid_view_View_OnClickListener_Handler")]
public virtual void SetOnSearchClickListener (Android.Views.View.IOnClickListener? listener);
[<Android.Runtime.Register("setOnSearchClickListener", "(Landroid/view/View$OnClickListener;)V", "GetSetOnSearchClickListener_Landroid_view_View_OnClickListener_Handler")>]
abstract member SetOnSearchClickListener : Android.Views.View.IOnClickListener -> unit
override this.SetOnSearchClickListener : Android.Views.View.IOnClickListener -> unit

Parameters

listener
View.IOnClickListener

the listener to inform when the search button is clicked or the text field is programmatically de-iconified.

Attributes

Remarks

Java documentation for android.widget.SearchView.setOnSearchClickListener(android.view.OnClickListener).

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