A collection of hand-crafted extensions for your Kotlin projects.
Context
everywherelazy
implementations, with reporting via Timber supportSelectableTextView
. Made to use it on simple, single-line list items.ItemViewHolder
helper class for simple but common use cases.This version adds the setHost(Host host)
method in ViewWrapper.Binder
interface where Host
can be any type you want you can use from the implementing item View to communicate with your Activity, Fragment, Presenter, or whatever. Note this adds a third type parameter to the ViewWrapper
class, and a second one for the ViewWrapper.Binder
class.
This version adds the setViewHolder(ViewWrapper holder)
method in ViewWrapper.Binder
interface so list item View
s can now get a reference to their ViewHolder
, and call getAdapterPosition()
on it for example.
This is the first release of Splitties. It included two independent modules:
For gradle projects from jcenter()
repo:
compile 'xyz.louiscad.splitties:selectableviewgroups:1.0'
compile 'xyz.louiscad.splitties:typesaferecyclerview:1.0'