Strange behaviour in Expandablelistview - Android

后端 未结 2 544
长情又很酷
长情又很酷 2021-01-13 20:54

Im trying to implement an activity that uses ExpandableListView and I have gotten so far but now I have found some strange behavior.

My activity is meant to record f

相关标签:
2条回答
  • 2021-01-13 21:27

    Android reuses dialogs. So the behavior you are seeing could be a result of that. You could use a activity managed dialog and use onPrepareDialog() to update dialog contents.

    0 讨论(0)
  • 2021-01-13 21:34

    I don't think the problem is with the dialogs. I had the same problem in my project and couldn't fix it. I think the ExpandableListView has a bug when opening children. I had only one child per group and when I expand a group, the child moves to another group. After testing, I found out that when I expand the children are reloaded.

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