onItemSelected

abstract fun onItemSelected(@NonNull view: RecyclerView, @NonNull child: View, position: Int, id: Long)(source)

Callback method to be invoked when an item in this view has been selected.

Parameters

view

The view where the selection happened

child

The view within the RecyclerView that was clicked

position

The position of the view in the adapter

id

The stable id of the item that was clicked or NO_ID if not using stable ids.