Thumbnails Touch Helper Callback
public class ThumbnailsTouchHelperCallback extends ItemTouchHelper.Callback
Content copied to clipboard
Internal use only.
Constructors
ThumbnailsTouchHelperCallback
Link copied to clipboard
void ThumbnailsTouchHelperCallback(ThumbnailsTouchHelperListener listener)
Content copied to clipboard
Functions
can Drop Over
Link copied to clipboard
boolean canDropOver(RecyclerView recyclerView, RecyclerView.ViewHolder current, RecyclerView.ViewHolder target)
Content copied to clipboard
choose Drop Target
Link copied to clipboard
RecyclerView.ViewHolder chooseDropTarget(RecyclerView.ViewHolder selected, List<RecyclerView.ViewHolder> dropTargets, int curX, int curY)
Content copied to clipboard
clear View
Link copied to clipboard
void clearView(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder)
Content copied to clipboard
convert To Absolute Direction
Link copied to clipboard
int convertToAbsoluteDirection(int flags, int layoutDirection)
Content copied to clipboard
convert To Relative Direction
Link copied to clipboard
static int convertToRelativeDirection(int flags, int layoutDirection)
Content copied to clipboard
get Animation Duration
Link copied to clipboard
long getAnimationDuration(RecyclerView recyclerView, int animationType, float animateDx, float animateDy)
Content copied to clipboard
get Bounding Box Margin
Link copied to clipboard
int getBoundingBoxMargin()
Content copied to clipboard
get Default UIUtil
Link copied to clipboard
get Movement Flags
Link copied to clipboard
int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder)
Content copied to clipboard
get Move Threshold
Link copied to clipboard
get Swipe Escape Velocity
Link copied to clipboard
float getSwipeEscapeVelocity(float defaultValue)
Content copied to clipboard
get Swipe Threshold
Link copied to clipboard
get Swipe Velocity Threshold
Link copied to clipboard
float getSwipeVelocityThreshold(float defaultValue)
Content copied to clipboard
interpolate Out Of Bounds Scroll
Link copied to clipboard
int interpolateOutOfBoundsScroll(RecyclerView recyclerView, int viewSize, int viewSizeOutOfBounds, int totalSize, long msSinceStartScroll)
Content copied to clipboard
is Item View Swipe Enabled
Link copied to clipboard
boolean isItemViewSwipeEnabled()
Content copied to clipboard
is Long Press Drag Enabled
Link copied to clipboard
boolean isLongPressDragEnabled()
Content copied to clipboard
make Movement Flags
Link copied to clipboard
static int makeMovementFlags(int dragFlags, int swipeFlags)
Content copied to clipboard
on Child Draw
Link copied to clipboard
void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive)
Content copied to clipboard
on Child Draw Over
Link copied to clipboard
void onChildDrawOver(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive)
Content copied to clipboard
on Move
Link copied to clipboard
boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target)
Content copied to clipboard
on Moved
Link copied to clipboard
void onMoved(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, int fromPos, RecyclerView.ViewHolder target, int toPos, int x, int y)
Content copied to clipboard
on Selected Changed
Link copied to clipboard
void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState)
Content copied to clipboard
on Swiped
Link copied to clipboard