Releases: noties/Adapt
Releases · noties/Adapt
v4.0.0
Added
Item.Wrapper
andItem#wrap
ItemWrapper#findWrapped
method to obtain wrapper of specific type- Item default
toString
implementation AdaptViewGroup#init
convenience method that takesChangeHandler
directlyAdaptView#init
convenience method that takesItem<?>
directlyLineNumberId
utility to get current line number in source codeAdaptDivider
utility to divide supplied list (convenience to add dividers/separators)Edges
utility class to encapsulate padding/marginDecorator
inStickyItemDecoration
to additionally process sticky item view- A collection of wrappers:
BackgroundWrapper
FrameWrapper
IdWrapper
MarginWrapper
OnBindWrapper
OnClickWrapper
PaddingWrapper
EnabledWrapper
Changed
Item.Key#builder
now requires root item,Item.Key.Builder#build
does not require argument;
this is done due to possible confusion of positions of items (so, each call wrap previous)ItemView#bind
is overridden by default (no op)AdaptViewGroup#findViewFor
usesItem#equals
instead of==
operatorAdaptView
usesItem#equals
instead of==
operatorItemWrapper
moved to packageio.noties.adapt.wrapper
Deprecated
Item.Key.single
in favor ofItem.Key.just
Removed
ItemWrapper.Provider
and 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:
Item
s no longer need to be explicitly registered (in most of the cases)Adapt
is an interface that comes with specific implementations:AdaptRecyclerView
AdaptListView
AdaptViewGroup
AdaptView
v2.2.0
- create
ItemGroup
for easier nested RecyclerView support - create
ItemLayoutWrapper
for easier wrapping of anItem
inside a different layout - add
HasWrappedItem
interface (2 implementations -ItemWrapper
andItemLayoutWrapper
) - utility to automatically process nested RecyclerView state -
NestedRecyclerState
- add
Adapt#getItem(position)
method - add
AdaptView#view()
method - add
StickyItemDecoration
for 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