public static interface SwipeHelper.Callback
Modifier and Type | Method and Description |
---|---|
boolean |
canChildBeDismissed(View v) |
View |
getChildAtPosition(MotionEvent ev) |
float |
getFalsingThresholdFactor() |
boolean |
isAntiFalsingNeeded() |
void |
onBeginDrag(View v) |
void |
onChildDismissed(View v) |
void |
onChildSnappedBack(View animView,
float targetLeft)
Called when the child is snapped to a position.
|
void |
onDragCancelled(View v) |
boolean |
updateSwipeProgress(View animView,
boolean dismissable,
float swipeProgress)
Updates the swipe progress on a child.
|
View getChildAtPosition(MotionEvent ev)
boolean canChildBeDismissed(View v)
boolean isAntiFalsingNeeded()
void onBeginDrag(View v)
void onChildDismissed(View v)
void onDragCancelled(View v)
void onChildSnappedBack(View animView, float targetLeft)
animView
- the view that was snapped.targetLeft
- the left position the view was snapped to.boolean updateSwipeProgress(View animView, boolean dismissable, float swipeProgress)
float getFalsingThresholdFactor()