v3.0.0
Important
This v3.0.0
release contains non backwards compatible changes.
- This version has migrated to
AndroidX
. - Major refactoring to View Event implementation.
SmartViewHolder
extensionsSmartAutoEventViewHolder
&SmartEventViewHolder
has been removed, useOnItemClickListener
&OnItemLongClickListener
.ViewEventHolder
has been removed, useViewEventListenerHolder
instead.ViewEventListener
has been renamed toOnViewEventListener
and has new methods.- Use
jcenter()
or directmaven { url "https://dl.bintray.com/manneohlund/maven" }
repository.
What’s new
Dependencies
- Migrated from
android.support
libraries toAndroidX
.
OnViewEventListener
- New ViewEventListener implementation with
OnViewEventListener
. - Added basic
OnItemClickListener
. - Added basic
OnItemLongClickListener
. - Added
ViewEventListenerHolder
to replaceViewEventHolder
. - Removed redundant
SmartAdapterBuilder.addViewEventListener
methods with overloading parameter. - Removed
SmartViewHolder
extensionsSmartAutoEventViewHolder
&SmartEventViewHolder
. - Removed
ViewEventHolder
, useViewEventListenerHolder
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.