Example usage for android.widget ListView clearTextFilter

List of usage examples for android.widget ListView clearTextFilter

Introduction

In this page you can find the example usage for android.widget ListView clearTextFilter.

Prototype

public void clearTextFilter() 

Source Link

Document

Clear the text filter.

Usage

From source file:com.github.yuukis.businessmap.app.ContactsListFragment.java

@Override
public boolean onQueryTextChange(String newText) {
    ListView listView = getListView();
    if (TextUtils.isEmpty(newText)) {
        listView.clearTextFilter();
    } else {/*from  www . j  a va2s . co m*/
        listView.setFilterText(newText.toString());
    }
    return true;
}