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 "https://dl.bintray.com/manneohlund/maven" } repository.

    What’s new

    Dependencies

    • πŸ‘ Migrated from android.support libraries to AndroidX.

    OnViewEventListener

    • πŸ†• 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.

    SmartStateHolder

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

    Extensions

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

    SmartEndlessScrollRecyclerAdapter

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

    More

    • πŸ“¦ 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.