I want to have an expandable list showing two different normal lists, one with static data from /assets/
, and one with data fetched from the database. Illustrated:
I am not really sure how to go about this. Will I be okay if I just extend BaseExpandableListAdapter
and then provide the two adapters as groups, forwarding calls to notifyDataSetChanged
to the ExpandableListAdapter
? I also assume that if I want to show a footer in the sub-lists, I will need to add them as a row. Will this work? Are there better alternatives?
Sure! Use this class as a starting point:
Watch out that child views are recycled, no matter what group they're from.