expandablelistview is not getting expanded when checkbox is added in parent xml

后端 未结 2 384
死守一世寂寞
死守一世寂寞 2021-01-23 01:20

I have developed the sample code of ExpandableListView in android. Data is being populated in Adapter and displaying in the ExpandableListView properly

相关标签:
2条回答
  • 2021-01-23 01:59

    If you place an item that is focusable in a list, then the list items no longer respond to clicks

    Try to set the CheckBox android:focusable attribute to false.

    0 讨论(0)
  • 2021-01-23 02:04

    In groupView layout set android:focusable="true" , android:clickable="true". For checkbox set android:focusable="false"

    0 讨论(0)
提交回复
热议问题