to top
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

? Examples
SearchViewCompat.OnCloseListenerCompat()
Public Methods

? Examples
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.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.