FloatingGroupExpandableListView
FloatingGroupExpandableListView copied to clipboard
How to add an OnChildClickListener?
Dear Diego,
great piece of software you have there. It almost worked out of the box for me. The only problem is that the OnChildClickListener which I had implemented in the same fragment where I also set up your FloatingGroupExpandableListView does not get called anymore, as it was the case before I used your extension. How would I implement such a listener while using your lib? Thanks for your answer!
Cordially, CK
Hey, I don't know if you already solved this issue, but I'm just using the library now and here's how I did it:
convertView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { callYourMethod(groupPosition, childPosition); } });
put this inside the getChildView() Method and you should be fine :)
i have a textview in child view,and i setOnClickListener in this textView,but it not work,why?