I have a custom listview adapter which contains ArrayList as a member.
Each game belongs to a round.
I mean:
public class GameSummary
{
String round;
Game game;
}
So actually, I need to create sort of a section list view, which the round will be the header and the games below.
The problem is, that the listview engine generates row PER object in the array.
So if I will have 3 GameSummary and 10 Games in the array in it – It will generate only 3 rows!
What should I do ?
The current custom adapter inherites from BaseAdapter class.
you have to use expandableListView and customAdapter like this.
and your class: