public class SwipeToDismissTouchListener
extends java.lang.Object
{@code
swipeToDismissTouchListener = new SwipeToDismissTouchListener(recyclerView, new
SwipeToDismissTouchListener.DismissCallbacks() {| Modifier and Type | Class and Description |
|---|---|
static interface |
SwipeToDismissTouchListener.DismissCallbacks |
class |
SwipeToDismissTouchListener.PendingDismissData |
static class |
SwipeToDismissTouchListener.SwipeDirection |
| Constructor and Description |
|---|
SwipeToDismissTouchListener(RecyclerView recyclerView,
SwipeToDismissTouchListener.DismissCallbacks callbacks)
Constructs a new swipe-to-dismiss OnItemTouchListener for RecyclerView
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
onInterceptTouchEvent(RecyclerView view,
android.view.MotionEvent motionEvent) |
void |
onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) |
void |
onTouchEvent(RecyclerView recyclerView,
android.view.MotionEvent motionEvent) |
void |
setEnabled(boolean enabled) |
public SwipeToDismissTouchListener(RecyclerView recyclerView,
SwipeToDismissTouchListener.DismissCallbacks callbacks)
recyclerView - RecyclerViewcallbacks - The callback to trigger when the user has indicated that she would like
to dismiss this view.public void setEnabled(boolean enabled)
public void onTouchEvent(RecyclerView recyclerView,
android.view.MotionEvent motionEvent)
public boolean onInterceptTouchEvent(RecyclerView view,
android.view.MotionEvent motionEvent)
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept)