android: listview in listview

前端 未结 5 1333
栀梦
栀梦 2020-11-28 06:31

i\'m trying to place a listview inside a listviewitem. the inner listview should not be scrollable but take all size it needs to display all it\'s rows. is there a better wa

5条回答
  •  误落风尘
    2020-11-28 07:01

    I tried making this exact structure (a ListView inside of a ListView) and had the same problem of it only showing the first item of the inner ListView. I fixed it by changing the layout_height of the inner list from match_parent to a set dp.

    It seemed to work exactly as I wanted it to.

提交回复
热议问题