List of usage examples for android.widget ListView setFilterText
public void setFilterText(String filterText)
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();/*from ww w. j av a2s .c o m*/ } else { listView.setFilterText(newText.toString()); } return true; }