rubensousa / Decorator

Decorator is an Android library that helps creating composable margins and dividers in RecyclerViews
Apache License 2.0
534 stars 38 forks source link

Pass ViewHolder in DecorationLookup #29

Closed rubensousa closed 1 year ago

rubensousa commented 1 year ago

This is a breaking change, but required for clients that need more information to determine if decoration should be applied or not.

It's also a somewhat required step after fixing https://github.com/rubensousa/Decorator/issues/28 since clients might rely on the adapter position at the moment, and this API change forces them to consider the item removal scenario

rubensousa commented 1 year ago

Fixed in 2.1.0