I am displaying a list video episodes in a ListView
. For this, I created a subclass of ArrayAdapter
and passed it a list of all the episodes. This works just fine.
Now, I want to add three additional items to the list, because the list should start with an item describing the show to which the episodes belong. I also add two additional headers (one for the description of the show and then one before the episodes start).
So effectively my ListView
should display episodeList.size()+3
items. My question is if I have to fake these three items in the episodeList
and insert three dummy items at the beginning of the list to tell the ArrayAdapter
that it should display my desired number of items, or is there a less hackish way of doing it?