android - Arrayindex out of bound comes when collapse the expandble list group -
android - Arrayindex out of bound comes when collapse the expandble list group -
i m using expandble list view , collapsing using expand.collapse throwing ans exception- 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; homecoming false; } });
hi can utilize this
@override public boolean ongroupclick(expandablelistview parent, view v, int groupposition, long id) { // todo auto-generated method stub if(pause!=1234){ mexpandablelist.collapsegroup(groupposition); system.out.println(pause+" clicked"); } pause=groupposition; homecoming false; }
or utilize method if suitable case.
mexpandablelist.setongroupexpandlistener(new ongroupexpandlistener() { public void ongroupexpand(int groupposition) { } });
android expandablelistview
Comments
Post a Comment