Select ReyclerView item(just single tap) with recycler view selection library
After digging over weeks, I found working solution. According to 한로니
If you want single-tap to select, just override
inSelectionHotspot(e: MotionEvent)
to returntrue
object : ItemDetailsLookup.ItemDetails<Long>() {
override fun getSelectionKey(): Long? {
return itemId
}
override fun getPosition(): Int {
return adapterPosition
}
override fun inSelectionHotspot(e: MotionEvent): Boolean {
return true
}
For more u can see on Here