I'm trying to convert an IOS app to android and I'm having some issues with things that where very simple in IOS.
My issue right now is that i have a list of Chapters Each chapter is an object of:
{
String
int
List<Paragraph>
}
I need to populate the listView with all the paragraphs for all the chapters and the string in the chapter need to be the header of the section so i will have a a display of
- Chapter header
-- Paragraph
-- Paragraph
-- Paragraph
- Chapter Header
-- Paragraph
-- Paragraph
And so on.... I already thought about creating a list of all the paragraphs from the chapters but then i loose the headers (the sections in my table) so this is no good. I am getting the correct list to the getView method in my adapter but need a way to get things right.
Any one has any idea how to do that in Android?
10x