`

PullToRefreshListView调用onRefreshComplete方法 无法取消下载的bug

 
阅读更多
主要原因是由于获取数据时间过短引起的
所以解决方案就产生了,我们可以延迟1s后调用onRefreshComplete方法
new Handler().postAtTime(new Runnable() {
    @Override
    public void run() {
        prlv_details.onRefreshComplete();
    }
},2000);

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics