Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Latest commit

 

History

History
145 lines (106 loc) · 5.8 KB

CHANGELOG.md

File metadata and controls

145 lines (106 loc) · 5.8 KB

Changelog

3.2.0 - 12/05/2020

SectionedRecyclerViewAdapter class

  • 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

3.1.0 - 21/11/2019

  • Add class SectionAdapterListUpdateCallback

3.0.0 - 07/09/2019

  • Remove class StatelessSection
  • Add class SectionAdapter
  • Add class SectionedRecyclerViewAdapterV2Compat
  • Move inner class EmptyViewHolder to package utils

SectionedRecyclerViewAdapter class

  • Add method getAdapterForSection
  • Removed notify* and get*Position* methods
  • Remove EmptyViewHolder inner class

SectionAdapter class

  • Add notify* and get*Position* methods from SectionedRecyclerViewAdapter

Section class

  • Remove method onBindContentViewHolder
  • Add overloaded methods onBind*ViewHolder with payloads as parameter
  • Change getHeaderViewHolder, getFooterViewHolder, getLoadingViewHolder, getFailedViewHolder and getEmptyViewHolder to throw UnsupportedOperationException instead of returning an EmptyViewHolder by default

SectionedRecyclerViewAdapterV2Compat

  • Add notify* and get*Position* removed methods from SectionedRecyclerViewAdapter

2.1.0 - 09/06/2019

  • Set source and target compatibility to Java 8

SectionedRecyclerViewAdapter class

  • Add methods addSection and getSection with index as parameter
  • Add method getSectionIndex
  • Add method getSectionCount
  • Remove method getSectionPosition(int)

SectionParameters.Builder class

  • Remove constructor with itemResourceId as parameter.

2.0.0 - 06/03/2019

  • Update to AndroidX

SectionedRecyclerViewAdapter class

  • Add methods notifyAllItemsInsertedInSection, notifyAllItemsInsertedInSection, notifyAllItemsChangedInSection, notifyAllItemsChangedInSection
  • Add method getSectionItemViewTypeForAdapterViewType

1.2.0 - 10/03/2018

Section class

  • Remove all deprecated constructors.
  • Add methods isItemViewWillBeProvided, isHeaderViewWillBeProvided, isFooterViewWillBeProvided, isLoadingViewWillBeProvided, isFailedViewWillBeProvided and isEmptyViewWillBeProvided.
  • Add methods getItemView, getHeaderView, getFooterView, getLoadingView, getFailedView and getEmptyView.

SectionedRecyclerViewAdapter class

  • Remove method getSectionsMap.
  • Add method getCopyOfSectionsMap
  • Add method removeSection(Section).

SectionParameters class

  • Add factory method for Builder class.

SectionParameters.Builder class

  • Deprecate constructor with itemResourceId as parameter.
  • Add method itemResourceId.
  • Add methods itemViewWillBeProvided, headerViewWillBeProvided, footerViewWillBeProvided, loadingViewWillBeProvided, failedViewWillBeProvided and emptyViewWillBeProvided.

StatelessSection class

  • Remove all deprecated constructors.

1.1.3 - 22/07/2017

Section class

  • Add checks for resource ids in setState and throw exception if missing.

SectionedRecyclerViewAdapter class

  • Add methods notifyNotLoadedStateChanged, notifyStateChangedToLoaded and notifyStateChangedFromLoaded.
  • Add methods notifyHeaderInsertedInSection, notifyFooterInsertedInSection, notifyHeaderRemovedFromSection and notifyFooterRemovedFromSection.
  • Add methods notifySectionChangedToVisible and notifySectionChangedToInvisible.

1.1.2 - 30/06/2017

SectionParameters class

  • Add this class to be used as parameter to constructors of Section and StatelessSection classes.

Section class

  • 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 and onBindEmptyViewHolder methods.

StatelessSection class

  • Deprecate all existing constructors.
  • Add constructor with SectionParameters as parameter.
  • Add LayoutRes annotation to resource id variables and constructor parameters.

SectionedRecyclerViewAdapter class

  • Add getSectionPosition(Section) method.
  • Add getPositionInAdapter, getHeaderPositionInAdapter and getFooterPositionInAdapter methods.
  • Add overloaded notifyItemInsertedInSection, notifyItemRangeInsertedInSection, notifyItemRemovedFromSection, notifyItemRangeRemovedFromSection, notifyItemChangedInSection, notifyItemRangeChangedInSection, notifyItemRangeChangedInSection, notifyItemMovedInSection methods with Section as parameter.
  • Add notifyHeaderChangedInSection and notifyFooterChangedInSection methods.

1.0.5 - 01/04/2017

SectionedRecyclerViewAdapter class

  • Deprecate getSectionPosition(int) method, method getPositionInSection(int) created as replacement.
  • Add getSectionPosition(String) method.
  • Add methods notifyItemInsertedInSection and notifyItemRangeInsertedInSection.
  • Add methods notifyItemRemovedFromSection, notifyItemRangeRemovedFromSection.
  • Add methods notifyItemChangedInSection and notifyItemRangeChangedInSection.
  • Add methods notifyItemRangeChangedInSection and notifyItemMovedInSection.

AndroidManifest

  • Remove label from application tag in the manifest file.

1.0.4 - 11/05/2016

SectionedRecyclerViewAdapter class

  • Add getSectionsMap method.

AndroidManifest

  • Remove supportsRtl and allowBackup from application tag in the manifest file.

1.0.3 - 31/03/2016

SectionedRecyclerViewAdapter class

  • Add getSectionItemViewType method.

1.0.2 - 30/03/2016

SectionedRecyclerViewAdapter class

  • Change access level to public of methods getSectionPosition and getSectionForPosition.

1.0.1 - 19/02/2016

SectionedRecyclerViewAdapter class

  • Fix issue when setting section to invisible.