RecyclerItemClickListener

class RecyclerItemClickListener(context: Context, onItemClick: (view: View, position: Int) -> Unit) : RecyclerView.OnItemTouchListener

Implementing the RecyclerView.OnItemTouchListener to respond to only single tap events

Author

aurélien leboulanger

Constructors

Link copied to clipboard
fun RecyclerItemClickListener(context: Context, onItemClick: (view: View, position: Int) -> Unit)

Functions

Link copied to clipboard
open override fun onInterceptTouchEvent(view: RecyclerView, e: MotionEvent): Boolean
Link copied to clipboard
open override fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean)
Link copied to clipboard
open override fun onTouchEvent(view: RecyclerView, motionEvent: MotionEvent)