OnGroupClickListener
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 !
精彩评论