Skip to content

v5.0.0-b5

Pre-release
Pre-release
Compare
Choose a tag to compare
@davideas davideas released this 04 Apr 21:29
· 868 commits to master since this release

Refactor

  • Constructor of AbstractSectionableItem now accepts the IHeader interface.
  • setHeader(header) in ISectionable interface is changed to void method.
  • Renamed method Utils.setHighlightText() to Utils.highlightText().
  • StickyHeaderDecoration is now deprecated, as consequence enableStickyHeaders(maxCachedHeaders) is also deprecated: use enableStickyHeaders().

Improvements

  • Headers are clickable when sticky! Thanks to @farfromrefug. StickyHeaders can now benefit of the existing click listeners in FlexibleViewHolder [See #41]. Pay attention at the method getStickySectionHeadersHolder().
  • IHeader item can be combined with IExpandable item to make a section expandable with header.
  • Adding items with new headers, headers are also shown.
  • Added AbstractExpandableHeaderItem.
  • Added a new Wiki page about how to implement sections with sticky headers and expandable sections. Direct link: Headers and Sections.
  • Added new methods getItemCountOfTypesUntil(), removeItemsOfType(), hasNewSearchText().
  • Multiple code improvements with SonarQube tool, thanks to @georgekankava.

Fixes

  • Fixed NPE in isEnabled(position) when position is unknown.
  • Fixed header linkage when deleting/restore items with header. It's important now that all sectionable items must initialize the own header at startup.
  • Bug fixing on SearchView and FilterMethods.
  • Fixed view activation elevation [See #38].
  • Fixed adapter item animation at startup.

Demo App

  • New example app supporting multiple fragments [See #19].
  • Added an example of FlexibleItemHolder to use simultaneously the same modelData object in multiple RecyclerView/Adapters.
  • Adapted code for Expandable Sections with headers. Enabled demo option for FragmentExpandableSections.
  • Demo app has more clear DatabaseService. It shows how to create item interfaces.
  • FlipView animation for Fragments.
  • Unfortunately the demo app has a known bug on FastScroller when changing Fragment, but FastScroller is planned to be changed.