eowise / recyclerview-stickyheaders

DEPRECATED. Android library that integrate sticky section headers in your RecyclerView
http://eowise.github.io/recyclerview-stickyheaders
MIT License
961 stars 148 forks source link

Require stable ids only if add or remove items feature is needed #5

Closed leruaa closed 9 years ago

leruaa commented 9 years ago

Stable ids are always required.

jpshelley commented 9 years ago

Before digging into the code, why are stable ids required for headers? This can't be dynamic data? Like calling a Rest end point to determine? @acatinon

leruaa commented 9 years ago

Stable ids are required to cache header height and whenever an item is a header or not.

If you don't want to implement item add or remove, you can use the position as id.