I'm using this code to make one big list view with multiple sections from multiple adapters. It's nice piece of code and it works fine. However i have small problem when i try to add sections dynamicly. I can add only one section and have problems with scrolling. Program crashes when adding second section or after scrolling list down and then trying to scroll it up.
This is my changed code:
and this is ddms output:
I see java.lang.ArrayIndexOutOfBoundsException but i have no idea what causes it.