FloatingGroupExpandableListView icon indicating copy to clipboard operation
FloatingGroupExpandableListView copied to clipboard

How to add an OnChildClickListener?

Open kalabalik opened this issue 7 years ago • 2 comments

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

kalabalik avatar Dec 30 '17 13:12 kalabalik

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 :)

TheCodePediaProject avatar Nov 07 '18 12:11 TheCodePediaProject

i have a textview in child view,and i setOnClickListener in this textView,but it not work,why?

zhengcx avatar May 11 '20 07:05 zhengcx