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