Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add an OnChildClickListener? #50

Open
kalabalik opened this issue Dec 30, 2017 · 2 comments
Open

How to add an OnChildClickListener? #50

kalabalik opened this issue Dec 30, 2017 · 2 comments

Comments

@kalabalik
Copy link

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

@TheCodePediaProject
Copy link

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

@zhengcx
Copy link

zhengcx commented May 11, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants