다음을 통해 공유


SearchView.SetOnQueryTextListener(SearchView+IOnQueryTextListener) Method

Definition

Sets a listener for user actions within the SearchView.

[Android.Runtime.Register("setOnQueryTextListener", "(Landroid/widget/SearchView$OnQueryTextListener;)V", "GetSetOnQueryTextListener_Landroid_widget_SearchView_OnQueryTextListener_Handler")]
public virtual void SetOnQueryTextListener (Android.Widget.SearchView.IOnQueryTextListener? listener);
[<Android.Runtime.Register("setOnQueryTextListener", "(Landroid/widget/SearchView$OnQueryTextListener;)V", "GetSetOnQueryTextListener_Landroid_widget_SearchView_OnQueryTextListener_Handler")>]
abstract member SetOnQueryTextListener : Android.Widget.SearchView.IOnQueryTextListener -> unit
override this.SetOnQueryTextListener : Android.Widget.SearchView.IOnQueryTextListener -> unit

Parameters

listener
SearchView.IOnQueryTextListener

the listener object that receives callbacks when the user performs actions in the SearchView such as clicking on buttons or typing a query.

Attributes

Remarks

Java documentation for android.widget.SearchView.setOnQueryTextListener(android.widget.OnQueryTextListener).

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