Since: API Level 11
public static interface

SearchView.OnCloseListener

android.widget.SearchView.OnCloseListener

Summary

Public Methods
abstract boolean onClose()
The user is attempting to close the SearchView.

Public Methods

public abstract boolean onClose ()

Since: API Level 11

The user is attempting to close the SearchView.

Returns
  • true if the listener wants to override the default behavior of clearing the text field and dismissing it, false otherwise.