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

Add/Delete items and section positions #1

Closed davideas closed 8 years ago

davideas commented 8 years ago

Hello, what happens if we delete or add new items to the list/section, I mean how do we have the correct new positions of the sections?

luizgrp commented 8 years ago

Hi @davideas,

I changed to public the methods getSectionPosition and getSectionForPosition of SectionedRecyclerViewAdapter, you can find an example of how to use them here.

Let me know if that helps.

Library version has been updated to 1.0.2 including these changes.

Thanks!