开发者

OnGroupClickListener

开发者 https://www.devze.com 2023-03-12 23:58 出处:网络
i set on my ExpandableListView OnGroupClickListener. but when i click on expanded group - group at first groupcollapsed, and only after se开发者_C百科cond click OnGroupClickListener called.I have the

i set on my ExpandableListView OnGroupClickListener. but when i click on expanded group - group at first group collapsed, and only after se开发者_C百科cond click OnGroupClickListener called.


I have the same problem. If I click on expanded group. The onGroupClickListener is not called on first click, but on the second !. This happens with version 2.1-update 1. Version 2.2 is working correctly !

To solve this problem you can use:

expList.setOnGroupCollapseListener(onGroupCollapseListener);
expList.setOnGroupExpandListener(OnGroupExpandListener);

This should work correctly. Worked in my case.

Good Luck !

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号