You should use only one ListView
and MergeAdapter
instead of four ListView
s.
MergeAdapter
accepts a mix of Adapter
s and View
s and presents them as one contiguous whole to whatever ListView
it is poured into. This is good for cases where you have multiple data sources, or if you have a handful of ordinary View
s to mix in with lists of data, or the like.
MergeAdapter library: https://github.com/commonsguy/cwac-merge