- Moved section selection logic to
ListaSectionRegistry
.- Implementations:
ClassSectionRegistry
,ItemSectionRegistry
andConcatSectionRegistry
- Now itemViewTypes are automatically generated by default
- Implementations:
- Allow setting a fallback section via
ConcatSectionRegistry
- New ListaAdapter's
submitNow
andclearNow
to submit or clear items without applying any diffing - You can now submit nulls via
submit
orsubmitNow
- You can now customise the background executor used for applying diffing via
ListaAsyncDiffer.Config
ListaAdapter.findViewHoldersOfSection
returns all ViewHolders of a given section- New extension function for creating ViewBindings:
ViewGroup.viewHolderBinding
- New extension functions for shared
RecycledViewPool
. CheckActivityRecycledViewPool
- Now each
ListaSection
will receive individual Adapter events instead of just the ViewHolder:- onViewHolderCreated
- onViewHolderBound
- onViewHolderRecycled
- onViewHolderAttachedToWindow
- onViewHolderDetachedFromWindow
- onFailedToRecycleView
- Moved safe list dispatch logic to public class
ListaUpdateDispatcher
ListaController
will now clear RecyclerView's adapter when the lifecycle owner is destroyed
animateRecyclerView
was removed fromListaController
since it's not really needed. You can overrideonCurrentListChanged
to animate the RecyclerView.
- Change package name to "com.rubensousa.lista"
- Don't throw an
IllegalStateException
whenListaController.submitList
is called without a RecyclerView attached.
- Loop main thread in
SmoothScrollToPositionAction
to avoid flakiness
- Apply diffing by default in
submitList
- Invalidate item decorations after adapter changes
- Initial release