当前位置: 动力学知识库 > 问答 > 编程问答 >

java - ExpandableListView Position Changes

问题描述:

I have an ExpandableListView used as a Navigation Drawer. I also have a function, switchFragment. One of the parameters of switchFragment is the position. But, when I expand all groups and press an item, that item doesn't get highlighted. When I collapse a group, it does. How can I 'stable' that position?

网友答案:

Depends on how you "highlight" it but usually mAdapter.notifyDataSetChanged(); does the trick.

分享给朋友:
您可能感兴趣的文章:
随机阅读: