OnItemTouchListener

An OnItemTouchListener allows the application to intercept touch events in progress at the view hierarchy level of the RecyclerView before those touch events are considered for RecyclerView's own scrolling behavior.

This can be useful for applications that wish to implement various forms of gestural manipulation of item views within the RecyclerView. OnItemTouchListeners may intercept a touch interaction already in progress even if the RecyclerView is already handling that gesture stream itself for the purposes of scrolling.

See also

Inheritors

Functions

Link copied to clipboard
Silently observe and/or take over touch events sent to the RecyclerView before they are handled by either the RecyclerView itself or its child views.
Link copied to clipboard
abstract fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean)
Called when a child of RecyclerView does not want RecyclerView and its ancestors to intercept touch events with onInterceptTouchEvent.
Link copied to clipboard
Process a touch event as part of a gesture that was claimed by returning true from a previous call to onInterceptTouchEvent.