private void initListView() { new Handler() .postDelayed( new Runnable() { @Override public void run() { exListView.stopRefresh(); exListView.stopLoadMore(); } }, 1000); // 刷新延时1s adapter.setList(infoMgr.getDatas()); if (adjacent.getPageInfo().getDatas() == null || adjacent.getPageInfo().getDatas().size() == 0) { statusListView.showNodata("附近10公里内还没有用户"); } else { statusListView.showExListView(); } }
@Override public void onReqComplete(HttpResult result) { if (result.isOk()) { LoadingDialog.closeLoadingDialog(1000); adjacent = (Adjacent) result.getBaseData(); infoMgr.addPageData(adjacent.getPageInfo()); exListView.setPullLoadEnable(infoMgr.isHaveNextPage()); initListView(); } else { MMToast.showShort("请求失败"); LoadingDialog.closeLoadingDialog(1000); } }