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
Post a Comment