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

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.