public class SimpleSwipeDragCallback extends SimpleDragCallback
SimpleDragCallback.DirectionsALL, LEFT_RIGHT, UP_DOWN| Constructor and Description |
|---|
SimpleSwipeDragCallback(ItemTouchCallback itemTouchCallback,
SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback,
android.graphics.drawable.Drawable leaveBehindDrawable) |
SimpleSwipeDragCallback(ItemTouchCallback itemTouchCallback,
SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback,
android.graphics.drawable.Drawable leaveBehindDrawable,
int swipeDirs) |
SimpleSwipeDragCallback(ItemTouchCallback itemTouchCallback,
SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback,
android.graphics.drawable.Drawable leaveBehindDrawable,
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) |
void |
onSwiped(android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
int direction) |
SimpleSwipeDragCallback |
withBackgroundSwipeLeft(int bgColor) |
SimpleSwipeDragCallback |
withBackgroundSwipeRight(int bgColor) |
SimpleSwipeDragCallback |
withHorizontalMarginDp(android.content.Context ctx,
int dp) |
SimpleSwipeDragCallback |
withHorizontalMarginPx(int px) |
SimpleSwipeDragCallback |
withLeaveBehindSwipeLeft(android.graphics.drawable.Drawable d) |
SimpleSwipeDragCallback |
withLeaveBehindSwipeRight(android.graphics.drawable.Drawable d) |
clearView, getDragDirs, isLongPressDragEnabled, onMove, setIsDragEnabledgetMovementFlags, setDefaultDragDirs, setDefaultSwipeDirscanDropOver, chooseDropTarget, convertToAbsoluteDirection, convertToRelativeDirection, getAnimationDuration, getBoundingBoxMargin, getDefaultUIUtil, getMoveThreshold, getSwipeEscapeVelocity, getSwipeThreshold, getSwipeVelocityThreshold, interpolateOutOfBoundsScroll, isItemViewSwipeEnabled, makeFlag, makeMovementFlags, onChildDrawOver, onMoved, onSelectedChangedpublic SimpleSwipeDragCallback(ItemTouchCallback itemTouchCallback, SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback, android.graphics.drawable.Drawable leaveBehindDrawable)
public SimpleSwipeDragCallback(ItemTouchCallback itemTouchCallback, SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback, android.graphics.drawable.Drawable leaveBehindDrawable, int swipeDirs)
public SimpleSwipeDragCallback(ItemTouchCallback itemTouchCallback, SimpleSwipeCallback.ItemSwipeCallback itemSwipeCallback, android.graphics.drawable.Drawable leaveBehindDrawable, int swipeDirs, int bgColor)
public SimpleSwipeDragCallback withLeaveBehindSwipeLeft(android.graphics.drawable.Drawable d)
public SimpleSwipeDragCallback withLeaveBehindSwipeRight(android.graphics.drawable.Drawable d)
public SimpleSwipeDragCallback withHorizontalMarginDp(android.content.Context ctx, int dp)
public SimpleSwipeDragCallback withHorizontalMarginPx(int px)
public SimpleSwipeDragCallback withBackgroundSwipeLeft(int bgColor)
public SimpleSwipeDragCallback withBackgroundSwipeRight(int bgColor)
public void onSwiped(android.support.v7.widget.RecyclerView.ViewHolder viewHolder,
int direction)
onSwiped in class SimpleDragCallbackpublic 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 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