- Change method
getSectionItemViewTypeForAdapterViewTypeto static - Change method
addSectionto throw exception when adding an existing section - Change method
getPositionInSectionto throw exception when passing header or footer position
- Add class
SectionAdapterListUpdateCallback
- Remove class
StatelessSection - Add class
SectionAdapter - Add class
SectionedRecyclerViewAdapterV2Compat - Move inner class
EmptyViewHolderto packageutils
- Add method
getAdapterForSection - Removed
notify*andget*Position*methods - Remove
EmptyViewHolderinner class
- Add
notify*andget*Position*methods fromSectionedRecyclerViewAdapter
- Remove method
onBindContentViewHolder - Add overloaded methods
onBind*ViewHolderwith payloads as parameter - Change
getHeaderViewHolder,getFooterViewHolder,getLoadingViewHolder,getFailedViewHolderandgetEmptyViewHolderto throwUnsupportedOperationExceptioninstead of returning anEmptyViewHolderby default
- Add
notify*andget*Position*removed methods fromSectionedRecyclerViewAdapter
- Set source and target compatibility to Java 8
- Add methods
addSectionandgetSectionwith 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,isFailedViewWillBeProvidedandisEmptyViewWillBeProvided. - Add methods
getItemView,getHeaderView,getFooterView,getLoadingView,getFailedViewandgetEmptyView.
- Remove method
getSectionsMap. - Add method
getCopyOfSectionsMap - Add method
removeSection(Section).
- Add factory method for
Builderclass.
- Deprecate constructor with itemResourceId as parameter.
- Add method
itemResourceId. - Add methods
itemViewWillBeProvided,headerViewWillBeProvided,footerViewWillBeProvided,loadingViewWillBeProvided,failedViewWillBeProvidedandemptyViewWillBeProvided.
- Remove all deprecated constructors.
- Add checks for resource ids in
setStateand throw exception if missing.
- Add methods
notifyNotLoadedStateChanged,notifyStateChangedToLoadedandnotifyStateChangedFromLoaded. - Add methods
notifyHeaderInsertedInSection,notifyFooterInsertedInSection,notifyHeaderRemovedFromSectionandnotifyFooterRemovedFromSection. - Add methods
notifySectionChangedToVisibleandnotifySectionChangedToInvisible.
- Add this class to be used as parameter to constructors of
SectionandStatelessSectionclasses.
- Add EMPTY state.
- Deprecate all existing constructors.
- Add constructor with
SectionParametersas parameter. - Add LayoutRes annotation to resource id variables and constructor parameters.
- Add
getEmptyResourceIdmethod. - Add
getEmptyViewHolderandonBindEmptyViewHoldermethods.
- Deprecate all existing constructors.
- Add constructor with
SectionParametersas parameter. - Add LayoutRes annotation to resource id variables and constructor parameters.
- Add
getSectionPosition(Section)method. - Add
getPositionInAdapter,getHeaderPositionInAdapterandgetFooterPositionInAdaptermethods. - Add overloaded
notifyItemInsertedInSection,notifyItemRangeInsertedInSection,notifyItemRemovedFromSection,notifyItemRangeRemovedFromSection,notifyItemChangedInSection,notifyItemRangeChangedInSection,notifyItemRangeChangedInSection,notifyItemMovedInSectionmethods withSectionas parameter. - Add
notifyHeaderChangedInSectionandnotifyFooterChangedInSectionmethods.
- Deprecate
getSectionPosition(int)method, methodgetPositionInSection(int)created as replacement. - Add
getSectionPosition(String)method. - Add methods
notifyItemInsertedInSectionandnotifyItemRangeInsertedInSection. - Add methods
notifyItemRemovedFromSection,notifyItemRangeRemovedFromSection. - Add methods
notifyItemChangedInSectionandnotifyItemRangeChangedInSection. - Add methods
notifyItemRangeChangedInSectionandnotifyItemMovedInSection.
- Remove
labelfrom application tag in the manifest file.
- Add
getSectionsMapmethod.
- Remove
supportsRtlandallowBackupfrom application tag in the manifest file.
- Add
getSectionItemViewTypemethod.
- Change access level to public of methods
getSectionPositionandgetSectionForPosition.
- Fix issue when setting section to invisible.