I need to implement a 3-level ExpandableListView for Android. I did this using ExpListView as children of another ExpListView. Two expandable lists are already displayed and can also be expanded. But there is only the 2nd level, if I click on the group of the 2nd level of the group, the arrow will change to the expanded state, but the lines of the 3rd level will not be able to see. Think that the external ExpListView needs to be updated in order to get space for level 3 rows, and it may also be necessary to recount the number of rows.
For similar questions on stackoveflow, there is nothing more than a link to an example, which solution I do not understand / cannot adapt to my implementation.
Link: http://mylifewithandroid.blogspot.de/2011/02/3-level-expandable-lists.html
Is there an easier solution or can someone explain this in a simple way. The code in the link above did not help me.
Explanation of what Ive done so far: Ive set BaseExpandableListAdapter to ExpandableListView and to its getGroupView () Iam using layoutInflater and wrote a ViewHolder that contains a TextView (like first level text) for each row. The getChildView () Iam using an optional ExpandableListView in the second ViewHolder. BaseExpandableListAdapter is also installed on this ExpListView Ive and getGroupView () and getChildView () for this adapter are implemented. We will do this using TextView, as described for the group (as second-level text), and also for this also child (as third-level text).
, , . .
.