Skip to content

v3.0.0

Compare
Choose a tag to compare
@manneohlund manneohlund released this 30 Aug 21:26
· 177 commits to master since this release

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.