Releases: noties/Adapt
Releases · noties/Adapt
v4.0.0
Added
Item.WrapperandItem#wrapItemWrapper#findWrappedmethod to obtain wrapper of specific type- Item default
toStringimplementation AdaptViewGroup#initconvenience method that takesChangeHandlerdirectlyAdaptView#initconvenience method that takesItem<?>directlyLineNumberIdutility to get current line number in source codeAdaptDividerutility to divide supplied list (convenience to add dividers/separators)Edgesutility class to encapsulate padding/marginDecoratorinStickyItemDecorationto additionally process sticky item view- A collection of wrappers:
BackgroundWrapperFrameWrapperIdWrapperMarginWrapperOnBindWrapperOnClickWrapperPaddingWrapperEnabledWrapper
Changed
Item.Key#buildernow requires root item,Item.Key.Builder#builddoes not require argument;
this is done due to possible confusion of positions of items (so, each call wrap previous)ItemView#bindis overridden by default (no op)AdaptViewGroup#findViewForusesItem#equalsinstead of==operatorAdaptViewusesItem#equalsinstead of==operatorItemWrappermoved to packageio.noties.adapt.wrapper
Deprecated
Item.Key.singlein favor ofItem.Key.just
Removed
ItemWrapper.Providerand dedicated constructorItemWrapper#init(Provider)are removed
3.0.0
3.0.0 is a complete rework of previous versions. It does not provide any backwards compatibility. The most important changes are:
Items no longer need to be explicitly registered (in most of the cases)Adaptis an interface that comes with specific implementations:AdaptRecyclerViewAdaptListViewAdaptViewGroupAdaptView
v2.2.0
- create
ItemGroupfor easier nested RecyclerView support - create
ItemLayoutWrapperfor easier wrapping of anIteminside a different layout - add
HasWrappedIteminterface (2 implementations -ItemWrapperandItemLayoutWrapper) - utility to automatically process nested RecyclerView state -
NestedRecyclerState - add
Adapt#getItem(position)method - add
AdaptView#view()method - add
StickyItemDecorationfor sticky headers/sections
v2.1.0
v2.0.0
Complete re-work of functionality. On top of adapter for a RecyclerView there is also an ability to use components (aka items) in different contexts: as a child of a ViewGroup and bound directly to a View. ViewGroup implementation also comes with diffing algorithm that plays nicely with Android transition framework.
- package name and artifact group-id change:
ru.noties->io.noties - this release is not backwards compatible with previous versions