SectionedRecyclerView icon indicating copy to clipboard operation
SectionedRecyclerView copied to clipboard

make public getSectionIndex from view position and getPositionInsection from view position

Open brucexia opened this issue 8 years ago • 3 comments

This would make accessing the data item easier.

brucexia avatar Mar 08 '16 04:03 brucexia

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

truizlop avatar Mar 08 '16 08:03 truizlop

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

mzestars avatar Aug 25 '16 04:08 mzestars

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.

truizlop avatar Aug 25 '16 09:08 truizlop