私は展開可能なリストビューを使用し、expand.collapse を使用して折りたたんでいますが、例外 Arrayindexoutofbound をスローしています。
ExpandableListView mExpandableList.setOnGroupClickListener(new OnGroupClickListener() {
@Override
public boolean onGroupClick(ExpandableListView parent, View v,
int groupPosition, long id) {
// TODO Auto-generated method stub
if(pause!=1234){
mExpandableList.collapseGroup(pause);
System.out.println(pause+" CLICKED");
}
pause=groupPosition;
return false;
}
});