v5.0.0-rc3
Pre-release
Pre-release
⚠️ Warning: If you come from previous versions/snapshots, with this update you MUST review your code. Please, follow the Wiki page Migrations.
New features
- Extension for LiveData and ViewModel (to use with the new Android Arch library).
- Resolved #431 - CustomTags: Different TAGs for each Adapter instance.
Deprecations / New Behaviors
- Resolved #393 - Provided last sticky header position in the callback
OnStickyHeaderChangeListener
. - Resolved #400 - Removal of all deprecated functions.
setStickyHeaderElevation
now accepts only dpi value.- Added
getBubbleText()
inIFlexible
. For who inherits fromAbstractFlexibleItem
, this change has default implementation returningposition + 1
. For who implements directly fromIFlexible
this method must be implemented. - Resolved #430 - FlexibleAdapter auto-mapping is now based on the return value of
getItemViewType
inIFlexible
. This gives flexibility to reuse same Layout for multiple item types as explained in #430. For who inherits from AbstractFlexibleItem, this change is transparent. For who implements directly fromIFlexible
this method must be implemented.
Improvements
- Updated build scripts.
- Scripts with GrabVer.
- SmoothScroll layout managers now implement
IFlexibleLayoutManager
. BubbleTextCreator
can be set in FastScroller.- Added Log when attaching/detaching RecyclerView.
- Resolved #397 - Support for fully recursive lists (expansion, collapsing, and update).
- Resolved #401 - Multilevel option to collapse or keep expanded status to sub-expandables.
- Resolved #427 - Dynamically add and remove listeners.
- Resolved #428 - Option to disable swipe/drag capabilities when ActionMode is activated.
- Resolved #434 - Consecutive Undo requests option & improved the general stability. New method to commit one by one the swiped items and undo only the latest action. Also, it will clear the internal memory references at the end of the dismissal event!
- Resolved #438 - Deprecated
OnActionListener
in UndoHelper alsoonPreAction()
andonPostAction()
.
New comprehensive methods name: Renamed the 2 callbacks methods inOnUndoListener
and renamed also the methodremove
series. - Resolved #437 - Upgrade to Support Library v26.
- Resolved #442 - Divider only for specific ViewTypes
⚠️ A small bug has been reported, see issue #475 for quick workaround. - Resolved #443 -
highlightText()
with multi-span in same text. - Resolved #450 - New method
highlightWords()
. - Resolved #456 - Show divider after last item.
- Resolved #461 - Optional Section Gap Offset for last item.
- Resolved #462 - Added new method
getSameTypePositionOf()
. - Resolved #463 - Get position of item in section, modified
getSubPositionOf()
.
Fixes
- Fixed #387 - Proguard issue with "SourceCode" and line numbers.
- Fixed #389 - Removed advancement of position beyond subItems such that now all subItem positions will be checked for nested expansion during update.
- Fixed #392 - FlexibleItemDecoration withOffset not working correctly for section headers (use of spanSize).
- Fixed #394 - Add subItem doesn't account for others expanded subItems.
- Fixed #395 - Use of MarginLayoutParams instead of LayoutParams when init StickyHeadersHolder layout.
- Fixed #404 - Expandable Sticky Header becomes invalid after updateDataSet.
- Fixed #409 -
setEndlessScrollListener
crashes when logging is enabled. - Fixed #458 - Handle subExpandable.getSubItems() when
null
.
DemoApp
- Revised Splash Screen with App name and bigger logo.