public interface

SwipeableItemConstants

com.h6ah4i.android.widget.advrecyclerview.swipeable.SwipeableItemConstants
Known Indirect Subclasses

Summary

Constants
int AFTER_SWIPE_REACTION_DEFAULT

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

int AFTER_SWIPE_REACTION_DO_NOTHING

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

int AFTER_SWIPE_REACTION_MOVE_TO_ORIGIN

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

int AFTER_SWIPE_REACTION_MOVE_TO_SWIPED_DIRECTION

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

int AFTER_SWIPE_REACTION_REMOVE_ITEM

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

int DRAWABLE_SWIPE_DOWN_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

int DRAWABLE_SWIPE_LEFT_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

int DRAWABLE_SWIPE_NEUTRAL_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

int DRAWABLE_SWIPE_RIGHT_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

int DRAWABLE_SWIPE_UP_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

float OUTSIDE_OF_THE_WINDOW_BOTTOM

Special value for the setSwipeItemVerticalSlideAmount(float) and getSwipeItemVerticalSlideAmount() methods.

float OUTSIDE_OF_THE_WINDOW_LEFT

Special value for the setSwipeItemHorizontalSlideAmount(float) and getSwipeItemHorizontalSlideAmount() methods.

float OUTSIDE_OF_THE_WINDOW_RIGHT

Special value for the setSwipeItemHorizontalSlideAmount(float) and getSwipeItemHorizontalSlideAmount() methods.

float OUTSIDE_OF_THE_WINDOW_TOP

Special value for the setSwipeItemVerticalSlideAmount(float) and getSwipeItemVerticalSlideAmount() methods.

int REACTION_CAN_NOT_SWIPE_ANY

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_BOTH This constant is deprecated. Use REACTION_CAN_NOT_SWIPE_ANY directly.
int REACTION_CAN_NOT_SWIPE_BOTH_H Convenient constant value: Equals to REACTION_CAN_NOT_SWIPE_LEFT | REACTION_CAN_NOT_SWIPE_RIGHT
int REACTION_CAN_NOT_SWIPE_BOTH_H_WITH_RUBBER_BAND_EFFECT Convenient constant value: Equals to REACTION_CAN_NOT_SWIPE_LEFT_WITH_RUBBER_BAND_EFFECT | REACTION_CAN_NOT_SWIPE_RIGHT_WITH_RUBBER_BAND_EFFECT
int REACTION_CAN_NOT_SWIPE_BOTH_V Convenient constant value: Equals to REACTION_CAN_NOT_SWIPE_UP | REACTION_CAN_NOT_SWIPE_DOWN
int REACTION_CAN_NOT_SWIPE_BOTH_V_WITH_RUBBER_BAND_EFFECT Convenient constant value: Equals to REACTION_CAN_NOT_SWIPE_UP_WITH_RUBBER_BAND_EFFECT | REACTION_CAN_NOT_SWIPE_DOWN_WITH_RUBBER_BAND_EFFECT
int REACTION_CAN_NOT_SWIPE_BOTH_WITH_RUBBER_BAND_EFFECT This constant is deprecated. Use REACTION_CAN_NOT_SWIPE_BOTH_H_WITH_RUBBER_BAND_EFFECT directly.
int REACTION_CAN_NOT_SWIPE_DOWN

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_DOWN_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_LEFT

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_LEFT_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_RIGHT

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_RIGHT_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_UP

Reaction type to swipe operation.

int REACTION_CAN_NOT_SWIPE_UP_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation.

int REACTION_CAN_SWIPE_BOTH This constant is deprecated. Use REACTION_CAN_SWIPE_BOTH_H directly.
int REACTION_CAN_SWIPE_BOTH_H Convenient constant value: Equals to REACTION_CAN_SWIPE_LEFT | REACTION_CAN_SWIPE_RIGHT
int REACTION_CAN_SWIPE_BOTH_V Convenient constant value: Equals to REACTION_CAN_SWIPE_UP | REACTION_CAN_SWIPE_DOWN
int REACTION_CAN_SWIPE_DOWN

Reaction type to swipe operation.

int REACTION_CAN_SWIPE_LEFT

Reaction type to swipe operation.

int REACTION_CAN_SWIPE_RIGHT

Reaction type to swipe operation.

int REACTION_CAN_SWIPE_UP

Reaction type to swipe operation.

int REACTION_MASK_START_SWIPE_DOWN

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

int REACTION_MASK_START_SWIPE_LEFT

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

int REACTION_MASK_START_SWIPE_RIGHT

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

int REACTION_MASK_START_SWIPE_UP

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

int REACTION_START_SWIPE_ON_LONG_PRESS

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

int RESULT_CANCELED

Result code of swipe operation.

int RESULT_NONE

Result code of swipe operation.

int RESULT_SWIPED_DOWN

Result code of swipe operation.

int RESULT_SWIPED_LEFT

Result code of swipe operation.

int RESULT_SWIPED_RIGHT

Result code of swipe operation.

int RESULT_SWIPED_UP

Result code of swipe operation.

int STATE_FLAG_IS_ACTIVE State flag for the setSwipeStateFlags(int) and getSwipeStateFlags() methods.
int STATE_FLAG_IS_UPDATED State flag for the setSwipeStateFlags(int) and getSwipeStateFlags() methods.
int STATE_FLAG_SWIPING State flag for the setSwipeStateFlags(int) and getSwipeStateFlags() methods.

Constants

public static final int AFTER_SWIPE_REACTION_DEFAULT

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

Represents moving the item back to its original position. (Alias of the AFTER_SWIPE_REACTION_MOVE_TO_ORIGIN)

Constant Value: 0 (0x00000000)

public static final int AFTER_SWIPE_REACTION_DO_NOTHING

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

Represents performing no action on the item.

Constant Value: 3 (0x00000003)

public static final int AFTER_SWIPE_REACTION_MOVE_TO_ORIGIN

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

Represents moving the item back to its original position.

Constant Value: 0 (0x00000000)

public static final int AFTER_SWIPE_REACTION_MOVE_TO_SWIPED_DIRECTION

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

Represents that the item moved to swiped direction.

Constant Value: 2 (0x00000002)

public static final int AFTER_SWIPE_REACTION_REMOVE_ITEM

After-reaction type used for the setAfterSwipeReaction(int) and getAfterSwipeReaction() methods.

Represents remove the swiped item.

Constant Value: 1 (0x00000001)

public static final int DRAWABLE_SWIPE_DOWN_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

Background image for the swiping-down item.

Constant Value: 4 (0x00000004)

public static final int DRAWABLE_SWIPE_LEFT_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

Background image for the swiping-left item.

Constant Value: 1 (0x00000001)

public static final int DRAWABLE_SWIPE_NEUTRAL_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

Background image for the neutral (= not swiping) item.

Constant Value: 0 (0x00000000)

public static final int DRAWABLE_SWIPE_RIGHT_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

Background image for the swiping-right item.

Constant Value: 3 (0x00000003)

public static final int DRAWABLE_SWIPE_UP_BACKGROUND

Background drawable type used for the second argument of the onSetSwipeBackground(android.support.v7.widget.RecyclerView.ViewHolder, int, int) method.

Background image for the swiping-up item.

Constant Value: 2 (0x00000002)

public static final float OUTSIDE_OF_THE_WINDOW_BOTTOM

Special value for the setSwipeItemVerticalSlideAmount(float) and getSwipeItemVerticalSlideAmount() methods.

Indicates that this item is pinned to DOWN the window.

Constant Value: 65537.0

public static final float OUTSIDE_OF_THE_WINDOW_LEFT

Special value for the setSwipeItemHorizontalSlideAmount(float) and getSwipeItemHorizontalSlideAmount() methods.

Indicates that this item is pinned to LEFT of the window.

Constant Value: -65536.0

public static final float OUTSIDE_OF_THE_WINDOW_RIGHT

Special value for the setSwipeItemHorizontalSlideAmount(float) and getSwipeItemHorizontalSlideAmount() methods.

Indicates that this item is pinned to RIGHT the window.

Constant Value: 65536.0

public static final float OUTSIDE_OF_THE_WINDOW_TOP

Special value for the setSwipeItemVerticalSlideAmount(float) and getSwipeItemVerticalSlideAmount() methods.

Indicates that this item is pinned to UP of the window.

Constant Value: -65537.0

public static final int REACTION_CAN_NOT_SWIPE_ANY

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe any direction"

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_BOTH

This constant is deprecated.
Use REACTION_CAN_NOT_SWIPE_ANY directly.

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_BOTH_H

Convenient constant value: Equals to REACTION_CAN_NOT_SWIPE_LEFT | REACTION_CAN_NOT_SWIPE_RIGHT

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_BOTH_H_WITH_RUBBER_BAND_EFFECT

Constant Value: 4097 (0x00001001)

public static final int REACTION_CAN_NOT_SWIPE_BOTH_V

Convenient constant value: Equals to REACTION_CAN_NOT_SWIPE_UP | REACTION_CAN_NOT_SWIPE_DOWN

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_BOTH_V_WITH_RUBBER_BAND_EFFECT

Constant Value: 262208 (0x00040040)

public static final int REACTION_CAN_NOT_SWIPE_BOTH_WITH_RUBBER_BAND_EFFECT

This constant is deprecated.
Use REACTION_CAN_NOT_SWIPE_BOTH_H_WITH_RUBBER_BAND_EFFECT directly.

Constant Value: 4097 (0x00001001)

public static final int REACTION_CAN_NOT_SWIPE_DOWN

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe down" (completely no reactions)

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_DOWN_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe down" (not swipeable, but rubber-band effect applied)

Constant Value: 262144 (0x00040000)

public static final int REACTION_CAN_NOT_SWIPE_LEFT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe left" (completely no reactions)

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_LEFT_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe left" (not swipeable, but rubber-band effect applied)

Constant Value: 1 (0x00000001)

public static final int REACTION_CAN_NOT_SWIPE_RIGHT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe right" (completely no reactions)

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_RIGHT_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe right" (not swipeable, but rubber-band effect applied)

Constant Value: 4096 (0x00001000)

public static final int REACTION_CAN_NOT_SWIPE_UP

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe up" (completely no reactions)

Constant Value: 0 (0x00000000)

public static final int REACTION_CAN_NOT_SWIPE_UP_WITH_RUBBER_BAND_EFFECT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can not swipe up" (not swipeable, but rubber-band effect applied)

Constant Value: 64 (0x00000040)

public static final int REACTION_CAN_SWIPE_BOTH

This constant is deprecated.
Use REACTION_CAN_SWIPE_BOTH_H directly.

Constant Value: 8194 (0x00002002)

public static final int REACTION_CAN_SWIPE_BOTH_H

Convenient constant value: Equals to REACTION_CAN_SWIPE_LEFT | REACTION_CAN_SWIPE_RIGHT

Constant Value: 8194 (0x00002002)

public static final int REACTION_CAN_SWIPE_BOTH_V

Convenient constant value: Equals to REACTION_CAN_SWIPE_UP | REACTION_CAN_SWIPE_DOWN

Constant Value: 524416 (0x00080080)

public static final int REACTION_CAN_SWIPE_DOWN

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can swipe down"

Constant Value: 524288 (0x00080000)

public static final int REACTION_CAN_SWIPE_LEFT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can swipe left"

Constant Value: 2 (0x00000002)

public static final int REACTION_CAN_SWIPE_RIGHT

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can swipe right"

Constant Value: 8192 (0x00002000)

public static final int REACTION_CAN_SWIPE_UP

Reaction type to swipe operation. Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

Indicates "can swipe up"

Constant Value: 128 (0x00000080)

public static final int REACTION_MASK_START_SWIPE_DOWN

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

If this flag is specified, swipe operation will not start even if user swipe an item to the left direction.

Constant Value: 2097152 (0x00200000)

public static final int REACTION_MASK_START_SWIPE_LEFT

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

If this flag is specified, swipe operation will not start even if user swipe an item to the LEFT direction.

Constant Value: 8 (0x00000008)

public static final int REACTION_MASK_START_SWIPE_RIGHT

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

If this flag is specified, swipe operation will not start even if user swipe an item to the RIGHT direction.

Constant Value: 32768 (0x00008000)

public static final int REACTION_MASK_START_SWIPE_UP

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

If this flag is specified, swipe operation will not start even if user swipe an item to the UP direction.

Constant Value: 512 (0x00000200)

public static final int REACTION_START_SWIPE_ON_LONG_PRESS

Used for the return value of the onGetSwipeReactionType(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int) method.

If this flag is specified, swiping starts on long press.

Constant Value: 16777216 (0x01000000)

public static final int RESULT_CANCELED

Result code of swipe operation. Used for the third argument of the onSwipeItem(RecyclerView.ViewHolder, int, int) method.

Canceled.

Constant Value: 1 (0x00000001)

public static final int RESULT_NONE

Result code of swipe operation. Used for the third argument of the onSwipeItem(RecyclerView.ViewHolder, int, int) method.

None. (internal default value, this value is not used for the argument)

Constant Value: 0 (0x00000000)

public static final int RESULT_SWIPED_DOWN

Result code of swipe operation. Used for the third argument of the onSwipeItem(RecyclerView.ViewHolder, int, int) method.

Swipe down performed.

Constant Value: 5 (0x00000005)

public static final int RESULT_SWIPED_LEFT

Result code of swipe operation. Used for the third argument of the onSwipeItem(RecyclerView.ViewHolder, int, int) method.

Swipe left performed.

Constant Value: 2 (0x00000002)

public static final int RESULT_SWIPED_RIGHT

Result code of swipe operation. Used for the third argument of the onSwipeItem(RecyclerView.ViewHolder, int, int) method.

Swipe right performed.

Constant Value: 4 (0x00000004)

public static final int RESULT_SWIPED_UP

Result code of swipe operation. Used for the third argument of the onSwipeItem(RecyclerView.ViewHolder, int, int) method.

Swipe up performed.

Constant Value: 3 (0x00000003)

public static final int STATE_FLAG_IS_ACTIVE

State flag for the setSwipeStateFlags(int) and getSwipeStateFlags() methods. Indicates that this item is being swiped.

Constant Value: 2 (0x00000002)

public static final int STATE_FLAG_IS_UPDATED

State flag for the setSwipeStateFlags(int) and getSwipeStateFlags() methods. If this flag is set, some other flags are changed and require to apply.

Constant Value: -2147483648 (0x80000000)

public static final int STATE_FLAG_SWIPING

State flag for the setSwipeStateFlags(int) and getSwipeStateFlags() methods. Indicates that currently performing swiping.

Constant Value: 1 (0x00000001)