- Change method
getSectionItemViewTypeForAdapterViewType
to static - Change method
addSection
to throw exception when adding an existing section - Change method
getPositionInSection
to throw exception when passing header or footer position
- Add class
SectionAdapterListUpdateCallback
- Remove class
StatelessSection
- Add class
SectionAdapter
- Add class
SectionedRecyclerViewAdapterV2Compat
- Move inner class
EmptyViewHolder
to packageutils
- Add method
getAdapterForSection
- Removed
notify*
andget*Position*
methods - Remove
EmptyViewHolder
inner class
- Add
notify*
andget*Position*
methods fromSectionedRecyclerViewAdapter
- Remove method
onBindContentViewHolder
- Add overloaded methods
onBind*ViewHolder
with payloads as parameter - Change
getHeaderViewHolder
,getFooterViewHolder
,getLoadingViewHolder
,getFailedViewHolder
andgetEmptyViewHolder
to throwUnsupportedOperationException
instead of returning anEmptyViewHolder
by default
- Add
notify*
andget*Position*
removed methods fromSectionedRecyclerViewAdapter
- Set source and target compatibility to Java 8
- Add methods
addSection
andgetSection
with index as parameter - Add method
getSectionIndex
- Add method
getSectionCount
- Remove method
getSectionPosition(int)
- Remove constructor with itemResourceId as parameter.
- Update to AndroidX
- Add methods
notifyAllItemsInsertedInSection
,notifyAllItemsInsertedInSection
,notifyAllItemsChangedInSection
,notifyAllItemsChangedInSection
- Add method
getSectionItemViewTypeForAdapterViewType
- Remove all deprecated constructors.
- Add methods
isItemViewWillBeProvided
,isHeaderViewWillBeProvided
,isFooterViewWillBeProvided
,isLoadingViewWillBeProvided
,isFailedViewWillBeProvided
andisEmptyViewWillBeProvided
. - Add methods
getItemView
,getHeaderView
,getFooterView
,getLoadingView
,getFailedView
andgetEmptyView
.
- Remove method
getSectionsMap
. - Add method
getCopyOfSectionsMap
- Add method
removeSection(Section)
.
- Add factory method for
Builder
class.
- Deprecate constructor with itemResourceId as parameter.
- Add method
itemResourceId
. - Add methods
itemViewWillBeProvided
,headerViewWillBeProvided
,footerViewWillBeProvided
,loadingViewWillBeProvided
,failedViewWillBeProvided
andemptyViewWillBeProvided
.
- Remove all deprecated constructors.
- Add checks for resource ids in
setState
and throw exception if missing.
- Add methods
notifyNotLoadedStateChanged
,notifyStateChangedToLoaded
andnotifyStateChangedFromLoaded
. - Add methods
notifyHeaderInsertedInSection
,notifyFooterInsertedInSection
,notifyHeaderRemovedFromSection
andnotifyFooterRemovedFromSection
. - Add methods
notifySectionChangedToVisible
andnotifySectionChangedToInvisible
.
- Add this class to be used as parameter to constructors of
Section
andStatelessSection
classes.
- Add EMPTY state.
- Deprecate all existing constructors.
- Add constructor with
SectionParameters
as parameter. - Add LayoutRes annotation to resource id variables and constructor parameters.
- Add
getEmptyResourceId
method. - Add
getEmptyViewHolder
andonBindEmptyViewHolder
methods.
- Deprecate all existing constructors.
- Add constructor with
SectionParameters
as parameter. - Add LayoutRes annotation to resource id variables and constructor parameters.
- Add
getSectionPosition(Section)
method. - Add
getPositionInAdapter
,getHeaderPositionInAdapter
andgetFooterPositionInAdapter
methods. - Add overloaded
notifyItemInsertedInSection
,notifyItemRangeInsertedInSection
,notifyItemRemovedFromSection
,notifyItemRangeRemovedFromSection
,notifyItemChangedInSection
,notifyItemRangeChangedInSection
,notifyItemRangeChangedInSection
,notifyItemMovedInSection
methods withSection
as parameter. - Add
notifyHeaderChangedInSection
andnotifyFooterChangedInSection
methods.
- Deprecate
getSectionPosition(int)
method, methodgetPositionInSection(int)
created as replacement. - Add
getSectionPosition(String)
method. - Add methods
notifyItemInsertedInSection
andnotifyItemRangeInsertedInSection
. - Add methods
notifyItemRemovedFromSection
,notifyItemRangeRemovedFromSection
. - Add methods
notifyItemChangedInSection
andnotifyItemRangeChangedInSection
. - Add methods
notifyItemRangeChangedInSection
andnotifyItemMovedInSection
.
- Remove
label
from application tag in the manifest file.
- Add
getSectionsMap
method.
- Remove
supportsRtl
andallowBackup
from application tag in the manifest file.
- Add
getSectionItemViewType
method.
- Change access level to public of methods
getSectionPosition
andgetSectionForPosition
.
- Fix issue when setting section to invisible.