I'm trying to use the SlideExpandableListView library (link) for Android and I've a problem to manage the button that expand the listview... In the source code there is an abstract class (AbstractSlideExpandableListAdapter.java) with a listener, but I don't know how I can implements in my code...
I've tryied this code but doesn't works:
AbstractSlideExpandableListAdapter manageclick = new SlideExpandableListAdapter(adapter);
manageclick .setItemExpandCollapseListener(new AbstractSlideExpandableListAdapter.OnItemExpandCollapseListener() {
@Override
public void onExpand(View itemView, int position) {
Toast.makeText(getActivity(),"I'm here", Toast.LENGTH_LONG).show();
}
@Override
public void onCollapse(View itemView, int position) {
}
});
Can you help me? Thanks!!