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.93k stars 355 forks source link

SpringView怎么自动刷新? #20

Open ghost opened 8 years ago

ghost commented 8 years ago

springView.callFresh(); 不起作用啊,也不会触发SpringView.OnFreshListener 求帮助啊!

恩,刚又试过了,需要延时就可以刷新了,而且延时大概500动画效果会好点,延时300试了动画会很硬。 new Handler().postDelayed(new Runnable() { @Override public void run() { springView.callFresh(); } }, 500);

AnyLifeZLB commented 8 years ago

new Handler().postDelayed(new Runnable() { @Override public void run() { springView.callFresh(); } }, 500);

这个可以,但是希望应用层代码能简洁一些