cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
Apache License 2.0
7.22k stars 1.43k forks source link

上拉加载loading不显示 #423

Open ZhengTaiChen opened 8 years ago

ZhengTaiChen commented 8 years ago

protected void enableLoadMore() { ultimateRecyclerView.setLoadMoreView(R.layout.custom_bottom_progressbar); ultimateRecyclerView.setOnLoadMoreListener((itemsCount, maxLastVisiblePosition) -> { if (myOrderBean != null && myOrderBean.getResult() != null && myOrderBean.getResult().getTotal() > 1) { if (myOrderBean.getResult().getCurrentPageNo() + 1 > myOrderBean.getResult().getPageSize()) {

                    } else {
                        getListInfo(myOrderBean.getResult().getCurrentPageNo() + 1);  //网络请求数据
                    }
                }

            }
    );
    ultimateRecyclerView.reenableLoadmore();

}
cymcsg commented 8 years ago

Do you mean that the loading more view do not appear at the first time but the loading method will execute?

ZhengTaiChen commented 8 years ago

是的,数据加载成功了。只是下面的loading没有显示出来

selfimprW commented 7 years ago

yes,I have also encountered the same problem