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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -