v5.0.0-b5
Pre-release
Pre-release
Refactor
- Constructor of
AbstractSectionableItem
now accepts theIHeader
interface. setHeader(header)
inISectionable
interface is changed to void method.- Renamed method
Utils.setHighlightText()
toUtils.highlightText()
. StickyHeaderDecoration
is now deprecated, as consequenceenableStickyHeaders(maxCachedHeaders)
is also deprecated: useenableStickyHeaders()
.
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 methodgetStickySectionHeadersHolder()
. IHeader
item can be combined withIExpandable
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.