luizgrp / SectionedRecyclerViewAdapter

An Adapter that allows a RecyclerView to be split into Sections with headers and/or footers. Each Section can have its state controlled individually.
MIT License
1.68k stars 372 forks source link

OnClick in onBindItemViewHolder does not work #190

Closed unix14 closed 4 years ago

unix14 commented 4 years ago

Describe the bug i was following your example6 demo and when i tried to set OnClick listener for items in onBindItemViewHolder, it did not work

Expected behavior as in picture, should trigger clickListener, but when clicked nothing happens

Screenshots from your example i tried to do this but image all i got is unresolved reference image

i also tried to do like this:

image

SectionedRecyclerViewAdapter library:1.2.0

unix14 commented 4 years ago

i have found a workaround, i added an id for each top level layout and then did image