👇 Easy Google Photos style multi-selection for RecyclerViews, powered by Kotlin and AndroidX.
AndroidX 1.0 stable.
You can set a listener that is invoked when auto scroll starts or ends.
setIsActive
when passing false for the first parameter.RANGE
is the default behavior, PATH
is a new behavior option.RecyclerView
or adapter. Everything is handled with a simple item touch listener and receiver interface.Check out the README and sample!
Got rid the included adapter class, now you just use DragSelectRecyclerView
with a plain RecyclerView.Adapter
which implements an interface.
See the README and sample project for more details.
selectAll()
methodUpdated target SDK, Google libs, Gradle, Gradle plugin, etc.
Updated Google libs.
restoreInstanceState
and saveInstanceState
for DragSelectRecyclerViewAdapter
now accept an optional key parameter, so you can save and restore states for multiple adapter instances in the same Activity
or Fragment
.dsrv_autoScrollHotspot_offsetTop
and dsrv_autoScrollHotspot_offsetBottom
, which can be used to adjust space between the top and bottom of the RecyclerView
and the auto scroll hotspots.