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 register event like click or longclick #23

Closed
zubinxiong opened this issue Sep 26, 2016 · 2 comments
Closed

how to register event like click or longclick #23

zubinxiong opened this issue Sep 26, 2016 · 2 comments

Comments

@zubinxiong
Copy link

recyclerView's click event usually give a interface for you to register in activity, but i found in this library all adapter extends from MultiTypeAdapter class, I can't find any way to get this interface.

for example : if i left a interface setonTextClickListener in TextItemViewProvider , how can i register it in activity or is there any better way to do this?

@drakeet
Copy link
Owner

drakeet commented Sep 26, 2016

You could extends MultiTypeAdapter to provide the setOnItemClickListener, but it is recommended that set your OnClickListener in your ItemViewProvider. ItemViewProvider can touch the data and views, it is appropriate.

@zubinxiong
Copy link
Author

thanks, it helps me a lot

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

No branches or pull requests

2 participants