I sub classed SimpleAdapter to add some extra functionality to it, like changing background color, custom views and filtering. The background thing is working out g
SimpleAdapter
Try this code:
@SuppressWarnings("unchecked") @Override protected void publishResults(CharSequence constraint, FilterResults results) { data.clear(); data.addAll((List>) results.values); if (results.count > 0) { notifyDataSetChanged(); } else { notifyDataSetInvalidated(); } }