Android-SlideExpandableListView icon indicating copy to clipboard operation
Android-SlideExpandableListView copied to clipboard

It is impossible to change the toggle button id without chaning your code

Open rekire opened this issue 11 years ago • 0 comments

I want to use your lib, I just have the problem that I don't want to use that more button. Instead I just want to click on the element itself. So far no problem, if I could change the button id in SlideExpandableListAdapter. By the way is it really nessesary to wraper the Adapter so often? If I reviewed your code correctly you wrap it up about three times.

As workaround I added this method:

public void setAdapter(ListAdapter adapter, int toggle_button_id, int expandable_view_id) {
    this.adapter = new SlideExpandableListAdapter(adapter, toggle_button_id, expandable_view_id);
    super.setAdapter(this.adapter);
}

rekire avatar Feb 17 '14 12:02 rekire