ExpandableListView in Fragment Issue

前端 未结 2 1255
慢半拍i
慢半拍i 2020-12-01 11:39

I am trying to implement an Expandable listView in a fragment. There are no errors coming and when I try to log the output from both the List and

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 12:15

    Dev.mi's solution works fine. But I was stuck in similar problem bcoz of some stupid mistake. I was making bit sophisticated design and had used scrollView as root parent for ExpandableListView.

    ExpandableListView with wrapcontent inside linear layout is enough to make it scrollable.

    Adding Scrollable View outside caused Expandable ListView to shrink to show only one header.

    Dont place ExpandableListView inside Scroll View

提交回复
热议问题