How to implement search in CustomListView based on class item of POJO class in Android?
You want your adapter to implement Filterable. Then override getFilter to perform the search @Override public Filter getFilter() { return new Filter() { @Override protected void publishResults(CharSequence constraint, FilterResults results) { if (results != null && results.count >= 0) { setData(results.values); } else { setData(mPostingData); } notifyDataSetInvalidated(); } @Override protected FilterResults performFiltering(CharSequence constraint) { FilterResults … Read more