android - OnChildClick affecting other random children -



android - OnChildClick affecting other random children -

i have custom expandablelistview , custom adapter. within each group, there's kid , have set when click on child, shows hidden layout (extending height of row). works, affects random kid in different group. should checking if kid right one? if yes, how so?

my listener:

this.listview.setonchildclicklistener(new onchildclicklistener() { @override public boolean onchildclick(expandablelistview parent, view v, int groupposition, int childposition, long id) { relativelayout hiddenbuttons = (relativelayout) v .findviewbyid(r.id.child_item_buttons_layout); if (hiddenbuttons.getvisibility() == view.gone) hiddenbuttons.setvisibility(view.visible); else hiddenbuttons.setvisibility(view.gone); homecoming true; } });

android android-listview

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -