//设置上拉下拉样式 xrv.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader); xrv.setLoadingMoreProgressStyle(ProgressStyle.BallClipRotate);xrv.setLoadingListener(new XRecyclerView.LoadingListener() { @Override public void onRefresh() { handler.postDelayed(new Runnable() { @Override public void run() { list.clear(); getData(page); adapter.notifyDataSetChanged(); xrv.refreshComplete(); } },3000); } @Override public void onLoadMore() { handler.postDelayed(new Runnable() { @Override public void run() { getData(page++); xrv.loadMoreComplete(); } },3000); } });
XrecyclerView简单使用
最新推荐文章于 2019-11-21 23:05:25 发布