ExpandableListView inside ExpandableListView

后端 未结 3 1563
旧巷少年郎
旧巷少年郎 2021-01-04 12:25

I would like to know if it is possible to put an ExpandableListView as one child of one element of another ExpandableListView. Thanks

3条回答
  •  太阳男子
    2021-01-04 12:53

    I personally tried this situation and its almost impossible to handle expandable list operations. If you put a second expandable list view into first one's child then the second one cannot open the first one when it is expanded. (the root ELV does not resize) Also the if the child ELV has too much children then it is opening incredibly slow.

    Give up if you try to find such a solution. the only way I found is to implement a listview behaving like a listview. This is the best solution I have ever found and implemented. This is the link.

    It can be nested and implemented as infinite level.

提交回复
热议问题