public static interface SwipeDismissLayout.OnSwipeProgressChangedListener
Modifier and Type | Method and Description |
---|---|
void |
onSwipeCancelled(SwipeDismissLayout layout) |
void |
onSwipeProgressChanged(SwipeDismissLayout layout,
float progress,
float translate)
Called when the layout has been swiped and the position of the window should change.
|
void onSwipeProgressChanged(SwipeDismissLayout layout, float progress, float translate)
progress
- A number in [0, 1] representing how far to the
right the window has been swipedtranslate
- A number in [0, w], where w is the width of the
layout. This is equivalent to progress * layout.getWidth().void onSwipeCancelled(SwipeDismissLayout layout)