public class SwipeViewBinder<T,V extends android.widget.FrameLayout,P extends SwipePlaceHolderView.SwipeOption,Q extends SwipeDecor> extends ViewBinder<T,V>
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
SwipeViewBinder.SwipeCallback<T extends SwipeViewBinder<?,? extends android.widget.FrameLayout,? extends SwipePlaceHolderView.SwipeOption,? extends SwipeDecor>> |
| Constructor and Description |
|---|
SwipeViewBinder(T resolver) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
animateSwipeRestore(android.view.View v,
int originalTopMargin,
int originalLeftMargin,
int swipeType) |
protected void |
bindSwipeCancelState() |
protected void |
bindSwipeHead(T resolver) |
protected void |
bindSwipeIn(T resolver) |
protected void |
bindSwipeInState() |
protected void |
bindSwipeOut(T resolver) |
protected void |
bindSwipeOutState() |
protected void |
bindSwipeView(V promptsView) |
protected void |
bindView(V promptsView,
int position,
int swipeType,
Q decor,
P swipeOption,
SwipeViewBinder.SwipeCallback callback) |
protected void |
blockTouch() |
protected void |
doSwipe(boolean isSwipeIn) |
protected void |
doUndoAnimation() |
protected SwipeViewBinder.SwipeCallback |
getCallback() |
int |
getFinalLeftMargin() |
int |
getFinalTopMargin() |
protected V |
getLayoutView() |
protected Q |
getSwipeDecor() |
protected android.view.View |
getSwipeInMsgView() |
protected P |
getSwipeOption() |
protected android.view.View |
getSwipeOutMsgView() |
protected int |
getSwipeType() |
protected android.animation.Animator.AnimatorListener |
getViewPutBackAnimatorListener() |
protected android.animation.Animator.AnimatorListener |
getViewRemoveAnimatorListener() |
protected android.animation.Animator.AnimatorListener |
getViewRestoreAnimatorListener() |
protected void |
setAnimatorListener() |
protected void |
setDefaultTouchListener(V view) |
void |
setFinalLeftMargin(int finalLeftMargin) |
void |
setFinalTopMargin(int finalTopMargin) |
protected void |
setHorizontalTouchListener(V view) |
protected void |
setOnTouch() |
protected void |
setSwipeInMsgView(android.view.View swipeInMsgView) |
protected void |
setSwipeOutMsgView(android.view.View swipeOutMsgView) |
protected void |
setVerticalTouchListener(V view) |
protected void |
unbind()
Remove all the references in the original class
|
bindAnimation, bindClick, bindLongPress, bindView, bindViewPosition, bindViews, getLayoutId, getPosition, getResolver, recycleView, resolveViewpublic SwipeViewBinder(T resolver)
resolver - protected void bindView(V promptsView, int position, int swipeType, Q decor, P swipeOption, SwipeViewBinder.SwipeCallback callback)
promptsView - position - swipeType - decor - callback - protected void setOnTouch()
protected void bindSwipeView(V promptsView)
protected void bindSwipeIn(T resolver)
resolver - protected void bindSwipeOut(T resolver)
resolver - protected void bindSwipeInState()
protected void bindSwipeOutState()
protected void bindSwipeCancelState()
protected void bindSwipeHead(T resolver)
protected void unbind()
ViewBinderunbind in class ViewBinder<T,V extends android.widget.FrameLayout>protected void setAnimatorListener()
protected void setDefaultTouchListener(V view)
view - protected void setHorizontalTouchListener(V view)
view - protected void setVerticalTouchListener(V view)
view - protected void blockTouch()
protected void animateSwipeRestore(android.view.View v,
int originalTopMargin,
int originalLeftMargin,
int swipeType)
v - originalTopMargin - originalLeftMargin - swipeType - protected void doSwipe(boolean isSwipeIn)
isSwipeIn - protected android.view.View getSwipeInMsgView()
protected void setSwipeInMsgView(android.view.View swipeInMsgView)
swipeInMsgView - protected android.view.View getSwipeOutMsgView()
protected void setSwipeOutMsgView(android.view.View swipeOutMsgView)
swipeOutMsgView - protected V getLayoutView()
protected SwipeViewBinder.SwipeCallback getCallback()
protected int getSwipeType()
protected P getSwipeOption()
protected Q getSwipeDecor()
protected android.animation.Animator.AnimatorListener getViewRemoveAnimatorListener()
protected android.animation.Animator.AnimatorListener getViewRestoreAnimatorListener()
protected android.animation.Animator.AnimatorListener getViewPutBackAnimatorListener()
public int getFinalLeftMargin()
public void setFinalLeftMargin(int finalLeftMargin)
public int getFinalTopMargin()
public void setFinalTopMargin(int finalTopMargin)
protected void doUndoAnimation()