public class

ItemSlidingAnimator

extends Object
java.lang.Object
   ↳ com.h6ah4i.android.widget.advrecyclerview.swipeable.ItemSlidingAnimator

Summary

Constants
int DIR_DOWN
int DIR_LEFT
int DIR_RIGHT
int DIR_UP
Public Constructors
ItemSlidingAnimator(SwipeableItemWrapperAdapter<RecyclerView.ViewHolder> adapter)
Public Methods
void endAnimation(RecyclerView.ViewHolder holder)
void endAnimations()
boolean finishSwipeSlideToDefaultPosition(RecyclerView.ViewHolder holder, boolean horizontal, boolean shouldAnimate, long duration, int itemPosition, SwipeResultAction resultAction)
boolean finishSwipeSlideToOutsideOfWindow(RecyclerView.ViewHolder holder, int dir, boolean shouldAnimate, long duration, int itemPosition, SwipeResultAction resultAction)
int getImmediatelySetTranslationThreshold()
int getSwipeContainerViewTranslationX(RecyclerView.ViewHolder holder)
int getSwipeContainerViewTranslationY(RecyclerView.ViewHolder holder)
boolean isRunning(RecyclerView.ViewHolder holder)
boolean isRunning()
void setImmediatelySetTranslationThreshold(int threshold)
void slideToDefaultPosition(RecyclerView.ViewHolder holder, boolean horizontal, boolean shouldAnimate, long duration)
void slideToOutsideOfWindow(RecyclerView.ViewHolder holder, int dir, boolean shouldAnimate, long duration)
void slideToSpecifiedPosition(RecyclerView.ViewHolder holder, float amount, boolean proportionalAmount, boolean horizontal, boolean shouldAnimate, long duration)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DIR_DOWN

Constant Value: 3 (0x00000003)

public static final int DIR_LEFT

Constant Value: 0 (0x00000000)

public static final int DIR_RIGHT

Constant Value: 2 (0x00000002)

public static final int DIR_UP

Constant Value: 1 (0x00000001)

Public Constructors

public ItemSlidingAnimator (SwipeableItemWrapperAdapter<RecyclerView.ViewHolder> adapter)

Public Methods

public void endAnimation (RecyclerView.ViewHolder holder)

public void endAnimations ()

public boolean finishSwipeSlideToDefaultPosition (RecyclerView.ViewHolder holder, boolean horizontal, boolean shouldAnimate, long duration, int itemPosition, SwipeResultAction resultAction)

public boolean finishSwipeSlideToOutsideOfWindow (RecyclerView.ViewHolder holder, int dir, boolean shouldAnimate, long duration, int itemPosition, SwipeResultAction resultAction)

public int getImmediatelySetTranslationThreshold ()

public int getSwipeContainerViewTranslationX (RecyclerView.ViewHolder holder)

public int getSwipeContainerViewTranslationY (RecyclerView.ViewHolder holder)

public boolean isRunning (RecyclerView.ViewHolder holder)

public boolean isRunning ()

public void setImmediatelySetTranslationThreshold (int threshold)

public void slideToDefaultPosition (RecyclerView.ViewHolder holder, boolean horizontal, boolean shouldAnimate, long duration)

public void slideToOutsideOfWindow (RecyclerView.ViewHolder holder, int dir, boolean shouldAnimate, long duration)

public void slideToSpecifiedPosition (RecyclerView.ViewHolder holder, float amount, boolean proportionalAmount, boolean horizontal, boolean shouldAnimate, long duration)