SmartRecyclerAdapter v3.0.0 Release Notes

Release Date: 2019-08-30 // over 2 years ago
  • Important

    πŸš€ This v3.0.0 release contains non backwards compatible changes.

    • This version has migrated to AndroidX.
    • ♻️ Major refactoring to View Event implementation.
    • 🚚 SmartViewHolder extensions SmartAutoEventViewHolder & SmartEventViewHolder has been removed, use OnItemClickListener & OnItemLongClickListener.
    • 🚚 ViewEventHolder has been removed, use ViewEventListenerHolder instead.
    • ViewEventListener has been renamed to OnViewEventListener and has new methods.
    • πŸ‘‰ Use jcenter() or direct maven { url "" } repository.

    What’s new


    • πŸ‘ Migrated from libraries to AndroidX.


    • πŸ†• New ViewEventListener implementation with OnViewEventListener.
    • βž• Added basic OnItemClickListener.
    • βž• Added basic OnItemLongClickListener.
    • βž• Added ViewEventListenerHolder to replace ViewEventHolder.
    • βœ‚ Removed redundant SmartAdapterBuilder.addViewEventListener methods with overloading parameter.
    • βœ‚ Removed SmartViewHolder extensions SmartAutoEventViewHolder & SmartEventViewHolder.
    • βœ‚ Removed ViewEventHolder, use ViewEventListenerHolder instead.


    • βž• Added SmartStateHolder with single & multi state handling like selection.
    • βž• Added OnItemSelectedListener for basic view selection.
    • βž• Added OnItemLongClickSelectedListener for long click enabled selection.


    • βž• Added Swipe extension with OnItemSwipedListener.
    • βž• Added Drag & Drop extension with OnItemMovedListener.
      • Supports Grid drag & drop with type awareness.


    • βž• Added passive load more button to internal LoadMoreViewHolder.


    • πŸ“¦ Renaming of package and directory structure in sample app.
    • πŸ“¦ Renaming of package name in library.
    • βž• Added more samples in demo app.
    • πŸ›  Fix bug in ViewTypeResolver.
    • ♻️ Optimizations, minor refactoring, bug fixes.