开发者

ArrayAdapter containing a ListView : possible

开发者 https://www.devze.com 2023-02-18 03:34 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消