public class

RecyclerView.SimpleOnItemTouchListener

extends java.lang.Object

implements RecyclerView.OnItemTouchListener

 java.lang.Object

↳androidx.recyclerview.widget.RecyclerView.SimpleOnItemTouchListener

Overview

An implementation of RecyclerView.OnItemTouchListener that has empty method bodies and default return values.

You may prefer to extend this class if you don't need to override all methods. Another benefit of using this class is future compatibility. As the interface may change, we'll always provide a default implementation on this class so that your code won't break when you update to a new version of the support library.

Summary

Constructors
publicSimpleOnItemTouchListener()

Methods
public booleanonInterceptTouchEvent(RecyclerView rv, MotionEvent e)

public voidonRequestDisallowInterceptTouchEvent(boolean disallowIntercept)

public voidonTouchEvent(RecyclerView rv, MotionEvent e)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public SimpleOnItemTouchListener()

Methods

public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e)

public void onTouchEvent(RecyclerView rv, MotionEvent e)

public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept)