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(RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder) |
void |
onChildDraw(android.graphics.Canvas c,
RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive) |
void |
onSwiped(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, setIsDragEnabledpublic 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(RecyclerView.ViewHolder viewHolder,
int direction)
onSwiped in class SimpleDragCallbackpublic int getSwipeDirs(RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder)
public void onChildDraw(android.graphics.Canvas c,
RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive)