v2.0-alpha2
Pre-release
Pre-release
- Adds
@NonNull
and@Nullable
annotations to improve interop with Kotlin. - In order to return as few nullable objects as possible, the behavior of some methods has changed. In particular, methods like
getGroup(int)
andgetItem(int)
which used to returnnull
for missing Group now throwIndexOutOfBoundsException
. Group.setGroupDataObserver
is nowregister/unregisterGroupDataObserver
.- The example project has been rewritten in Kotlin with Android extensions.
- The standard library (no databinding)
Item.createViewHolder
now has a default implementation. The main reason is that if you use Kotlin Android extensions, you never need to create your own ViewHolders—just like the original implementation.