We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 would one pass a onClickListener to the adapter for when the View (parent) or entire ViewHolder is selected.
In your example you only show how to add a onClickListener to a button within the View Holder.
I want to know when a user clicks on an Item in the recyclerView and have the item Passed through to the onclick event.
The text was updated successfully, but these errors were encountered:
You should set the click listener on the top level view of the item. Within the ViewHolder you can do getView().setOnClickListener(...)
getView().setOnClickListener(...)
Sorry, something went wrong.
No branches or pull requests
How would one pass a onClickListener to the adapter for when the View (parent) or entire ViewHolder is selected.
In your example you only show how to add a onClickListener to a button within the View Holder.
I want to know when a user clicks on an Item in the recyclerView and have the item Passed through to the onclick event.
The text was updated successfully, but these errors were encountered: