- Fix:
IndexOutOfBoundExeption
when not using ObservableList - Update target SDK to 27
- Update Kotlin to version 1.2.0
- Update support libraries to version 27.0.2
- Update Android build tools to version 27.0.1
- Update Android Gradle Plugin to version 3.0.1
Breaking changes
- New: Removed
with
constructor – Use default constructors instead. - New: Added
onCreate
callback as it is a more convenient place to set the click listeners. - New: Click listeners are not set in on
onCreate
. - New: Added support for different variable names depending on the type, while still support the old "only one variable name"-style for all types.
- New: ViewHolder class renamed to Holder.
- Smaller size despite including new features!
Breaking changes
- New: The ViewHolder is now the only argument in the callbacks. It was added to add ItemTouchHelper support but since the binding, the position and the view are inside the ViewHolder, this is actually the only argument needed.
- In Kotlin, arguments for Handlers (item & position) need to be explicitly declared now.
- Updated dependencies: Kotlin 1.1.1, Support libraries 25.3.0, Gradle 3.3, Gradle plugin 2.3.0.
- Updated to Kotlin 1.0.4
- Fix: IllegalStateException: reference.get() must not be null.
- Removed unneeded "generics".
- Dependencies updated (which increased min SDK version from 7 to 9).
- Code cleanup.
- New: Added
type
parameter toonBind
,onClick
andonLongClick
methods in their respective interfaces. It is an int value that matches the layout resource id used for each item. - Fix:
for
loop range inListReference.onItemRangeMoved
. ListReference
class moved to a new file.- Dependencies updated.
- New: Added lambda support in Kotlin for
onBind
,onClick
,onLongClick
andlayout
.
- Initial release.