public class RecyclerItemClickListener
extends java.lang.Object
implements androidx.recyclerview.widget.RecyclerView.OnItemTouchListener
Modifier and Type | Class and Description |
---|---|
static interface |
RecyclerItemClickListener.OnItemClickListener |
Modifier and Type | Field and Description |
---|---|
private boolean |
isDouble |
private boolean |
isLongPress |
private boolean |
isRunning |
private android.view.GestureDetector |
mGestureDetector |
private RecyclerItemClickListener.OnItemClickListener |
mListener |
Constructor and Description |
---|
RecyclerItemClickListener(android.content.Context context,
RecyclerItemClickListener.OnItemClickListener listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
onInterceptTouchEvent(androidx.recyclerview.widget.RecyclerView view,
android.view.MotionEvent e) |
void |
onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) |
void |
onTouchEvent(androidx.recyclerview.widget.RecyclerView view,
android.view.MotionEvent motionEvent) |
private RecyclerItemClickListener.OnItemClickListener mListener
private android.view.GestureDetector mGestureDetector
private boolean isDouble
private boolean isRunning
private boolean isLongPress
public RecyclerItemClickListener(android.content.Context context, RecyclerItemClickListener.OnItemClickListener listener)
public boolean onInterceptTouchEvent(androidx.recyclerview.widget.RecyclerView view, android.view.MotionEvent e)
onInterceptTouchEvent
in interface androidx.recyclerview.widget.RecyclerView.OnItemTouchListener
public void onTouchEvent(androidx.recyclerview.widget.RecyclerView view, android.view.MotionEvent motionEvent)
onTouchEvent
in interface androidx.recyclerview.widget.RecyclerView.OnItemTouchListener
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept)
onRequestDisallowInterceptTouchEvent
in interface androidx.recyclerview.widget.RecyclerView.OnItemTouchListener