private void paging(final String url) { final int pageSize = BEAN.getPageSize(); final int currentCount = BEAN.getCurrentCount(); final int total = BEAN.getTotal(); final int index = BEAN.getPageIndex(); if (mAdapter.getData().size() < pageSize || currentCount >= total) { mAdapter.loadMoreEnd(true); } else { Latte.getHandler().postDelayed(new Runnable() { @Override public void run() { RestClient.builder() .url(url + index) .success(new ISuccess() { @Override public void onSuccess(String response) { LatteLogger.json("paging", response); //这部分数据加载有问题 CONVERTER.clearData(); mAdapter.addData(CONVERTER.setJsonData(response).convert()); //累加数量 BEAN.setCurrentCount(mAdapter.getData().size()); mAdapter.loadMoreComplete(); BEAN.addIndex(); } }) .build() .get(); } }, 1000); } }