SearchView.SetOnSearchClickListener(View+IOnClickListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.