public class SimpleSwipeCallback
extends android.support.v7.widget.helper.ItemTouchHelper.SimpleCallback
| Modifier and Type | Class and Description |
|---|---|
static interface |
SimpleSwipeCallback.ItemSwipeCallback |
| Constructor and Description |
|---|
SimpleSwipeCallback(SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback,
android.graphics.drawable.Drawable leaveBehindDrawableLeft) |
SimpleSwipeCallback(SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback,
android.graphics.drawable.Drawable leaveBehindDrawableLeft,
int swipeDirs) |
SimpleSwipeCallback(SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback,
android.graphics.drawable.Drawable leaveBehindDrawableLeft,
int swipeDirs,
int bgColor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSwipeDirs(android.support.v7.widget.RecyclerView recyclerView,
android.support.v7.widget.RecyclerView.ViewHolder viewHolder) |
void |
onChildDraw(android.graphics.Canvas c,
android.support.v7.widget.RecyclerView recyclerView,
android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive) |
boolean |
onMove(android.support.v7.widget.RecyclerView recyclerView,
android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
android.support.v7.widget.RecyclerView.ViewHolder target) |
void |
onSwiped(android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
int direction) |
SimpleSwipeCallback |
withBackgroundSwipeLeft(int bgColor) |
SimpleSwipeCallback |
withBackgroundSwipeRight(int bgColor) |
SimpleSwipeCallback |
withHorizontalMarginDp(android.content.Context ctx,
int dp) |
SimpleSwipeCallback |
withHorizontalMarginPx(int px) |
SimpleSwipeCallback |
withLeaveBehindSwipeLeft(android.graphics.drawable.Drawable d) |
SimpleSwipeCallback |
withLeaveBehindSwipeRight(android.graphics.drawable.Drawable d) |
getDragDirs, getMovementFlags, setDefaultDragDirs, setDefaultSwipeDirscanDropOver, chooseDropTarget, clearView, convertToAbsoluteDirection, convertToRelativeDirection, getAnimationDuration, getBoundingBoxMargin, getDefaultUIUtil, getMoveThreshold, getSwipeEscapeVelocity, getSwipeThreshold, getSwipeVelocityThreshold, interpolateOutOfBoundsScroll, isItemViewSwipeEnabled, isLongPressDragEnabled, makeFlag, makeMovementFlags, onChildDrawOver, onMoved, onSelectedChangedpublic SimpleSwipeCallback(SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback, android.graphics.drawable.Drawable leaveBehindDrawableLeft)
public SimpleSwipeCallback(SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback, android.graphics.drawable.Drawable leaveBehindDrawableLeft, int swipeDirs)
public SimpleSwipeCallback(SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback, android.graphics.drawable.Drawable leaveBehindDrawableLeft, int swipeDirs, int bgColor)
public SimpleSwipeCallback withLeaveBehindSwipeLeft(android.graphics.drawable.Drawable d)
public SimpleSwipeCallback withLeaveBehindSwipeRight(android.graphics.drawable.Drawable d)
public SimpleSwipeCallback withHorizontalMarginDp(android.content.Context ctx, int dp)
public SimpleSwipeCallback withHorizontalMarginPx(int px)
public SimpleSwipeCallback withBackgroundSwipeLeft(int bgColor)
public SimpleSwipeCallback withBackgroundSwipeRight(int bgColor)
public int getSwipeDirs(android.support.v7.widget.RecyclerView recyclerView,
android.support.v7.widget.RecyclerView.ViewHolder viewHolder)
getSwipeDirs in class android.support.v7.widget.helper.ItemTouchHelper.SimpleCallbackpublic void onSwiped(android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
int direction)
onSwiped in class android.support.v7.widget.helper.ItemTouchHelper.Callbackpublic boolean onMove(android.support.v7.widget.RecyclerView recyclerView,
android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
android.support.v7.widget.RecyclerView.ViewHolder target)
onMove in class android.support.v7.widget.helper.ItemTouchHelper.Callbackpublic void onChildDraw(android.graphics.Canvas c,
android.support.v7.widget.RecyclerView recyclerView,
android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive)
onChildDraw in class android.support.v7.widget.helper.ItemTouchHelper.Callback