I've a ListView containg an ArrayAdapter. This ArrayAdapter contains another ListView. The second listView is not display completly and I've some strange behaviour.
So my question : can we do create a ListView containing开发者_运维技巧 itself another listview on each line ?
Thanks
You CANNOT put ListView
, GridView
etc inside each other, or inside a ScrollView
.
Use an ExpandableListView
if you'd like grouped items in a list, or please explain further the UI you are trying to achieve.
See my post here: Showing recursive lists inside a tab view for some info on what you're trying to achieve.
Does an ExpandableListView do what you need?
精彩评论