Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 11

SearchView.OnCloseListener

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

onClose

added in API level 11
public abstract boolean onClose ()

The user is attempting to close the SearchView.

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