public interface IView
| 限定符和类型 | 方法和说明 |
|---|---|
void |
detach()
收尾
|
void |
finishPull(boolean isBeingDragged,
java.lang.CharSequence msg,
boolean result)
拉回
|
android.view.View |
getTargetView(android.view.ViewGroup parent) |
void |
onFingerUp(float scrollY)
手指放开
|
void |
onPull(float scrollY,
boolean enable)
拖拽的回调
|
void |
pullLayout(IPull iPull)
关联IPull
|
int |
throttleDistance() |
android.view.View getTargetView(android.view.ViewGroup parent)
void onPull(float scrollY,
boolean enable)
scrollY - 大于0表示下拉的距离,小于0表示上拉的距离enable - head和footer制约的标记void onFingerUp(float scrollY)
scrollY - 手指放开时的拖拽距离void detach()
void pullLayout(IPull iPull)
iPull - int throttleDistance()
void finishPull(boolean isBeingDragged,
java.lang.CharSequence msg,
boolean result)
isBeingDragged - true表示手指还在拖动状态msg - 提示消息result - 是否成功