Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static abstract class

SearchViewCompat.OnCloseListenerCompat

extends Object
java.lang.Object
   ↳ android.support.v4.widget.SearchViewCompat.OnCloseListenerCompat

Class Overview

Callback for closing the query UI.

Summary

Public Constructors
SearchViewCompat.OnCloseListenerCompat ()
Public Methods
boolean onClose ()
The user is attempting to close the SearchView.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SearchViewCompat.OnCloseListenerCompat ()

Public Methods

public boolean onClose ()

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.