quanXrecycler.setLoadingMoreEnabled(true);
quanXrecycler.setPullRefreshEnabled(true);
quanXrecycler.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
page++;
presenterQuan.getQuanModel(page,count);
quan_adapters.notifyDataSetChanged();
quanXrecycler.refreshComplete();
}
},2000);
}
@Override
public void onLoadMore() {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
page=1;
presenterQuan.getQuanModel(page,count);
quan_adapters.notifyDataSetChanged();
quanXrecycler.loadMoreComplete();
}
},2000);
}
});