Expanding Mark Murphy's answer, I think it's as simple as adding this method to the MergeAdapter:
public void removeAdapter(ListAdapter la) { pieces.remove(la); }
remove() accepts the object and will do all the necessary testing and removal for you if this object is contained in the pieces list. You could make it return a bool or something for your own purposes, but I didn’t have such a need.
Then just call something like:
int view_to_remove = *AN_INT* adapter.removeAdapter(listAdapter.getAdapter(view_to_remove)); adapter.notifyDataSetChanged();
source share