liaoinstan / SpringView

🔥 A custom view pull to refresh,support ScrollView,ListView,RecyclerView,WebView and all another views, easy to use
Apache License 2.0
1.94k stars 355 forks source link

onPreGrag这个方法会在调用一次onDropAnim后再执行 #7

Open JeffrayZ opened 8 years ago

JeffrayZ commented 8 years ago

onPreGrag这个方法会在调用一次onDropAnim后再执行。最简单的方法就是设一个标志,在onPreGrag里面改变标志参数,表示是否可以执行onDropAnim方法,这样应该能保证每次onPreGrag先执行,在其执行以后,再执行onDropAnim方法。

JeffrayZ commented 8 years ago

我看到了, // 回调onDropAnim接口 callOnDropAnim(); // 回调callOnPreDrag接口 callOnPreDrag(); 调用位置反了。上下互换就OK

liaoinstan commented 8 years ago

原来,好像是呵