public class RecyclerSwipeHelper
extends ItemTouchHelper.SimpleCallback
Modifier | Constructor and Description |
---|---|
protected |
RecyclerSwipeHelper(android.content.Context context,
int dragDirs,
int swipeDirs) |
Modifier and Type | Method and Description |
---|---|
void |
onChildDraw(android.graphics.Canvas c,
RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
int actionState,
boolean isCurrentlyActive) |
void |
onChildDrawLeft(java.lang.String text,
int textColor,
int icon,
int iconColor,
int backgroundColor) |
void |
onChildDrawRight(java.lang.String text,
int textColor,
int icon,
int iconColor,
int backgroundColor) |
boolean |
onMove(RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder,
RecyclerView.ViewHolder target) |
void |
onSwiped(RecyclerView.ViewHolder viewHolder,
int direction) |
protected RecyclerSwipeHelper(android.content.Context context, int dragDirs, int swipeDirs)
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target)
public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction)
public void onChildDrawLeft(java.lang.String text, int textColor, int icon, int iconColor, int backgroundColor)
public void onChildDrawRight(java.lang.String text, int textColor, int icon, int iconColor, int backgroundColor)
public void onChildDraw(android.graphics.Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive)