truizlop/SectionedRecyclerView

make public getSectionIndex from view position and getPositionInsection from view position

brucexia opened this issue · 3 comments

This would make accessing the data item easier.

Could you elaborate a bit more on this issue? Why do you need access to it?

I would need this to handle on click events, so that I can get back the object that I bind to that row item.

You have section and row indices available on method onBindItemViewHolder. You can send such information to your view holder and have it available when handling click events.