public static interface SwipeBackLayout.SwipeListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onEdgeTouch(int edgeFlag)
Invoke when edge touched
|
void |
onScrollOverThreshold()
Invoke when scroll percent over the threshold for the first time
|
void |
onScrollStateChange(int state,
float scrollPercent)
Invoke when state change
|
void onScrollStateChange(int state,
float scrollPercent)
state - flag to describe scroll statescrollPercent - scroll percent of this viewSwipeBackLayout.STATE_IDLE,
SwipeBackLayout.STATE_DRAGGING,
SwipeBackLayout.STATE_SETTLINGvoid onEdgeTouch(int edgeFlag)
edgeFlag - edge flag describing the edge being touchedSwipeBackLayout.EDGE_LEFT,
SwipeBackLayout.EDGE_RIGHT,
SwipeBackLayout.EDGE_BOTTOMvoid onScrollOverThreshold()