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

loadMore will be called automatically onCreate Aftere setNormalHeader #335

Open OVERSKY2003 opened 8 years ago

OVERSKY2003 commented 8 years ago

I find that loadMore will be called automatically when onCreate After setNormalHeader. After enableLoadmore, itemsCount=2 and maxLastVisiblePosition=1, it will trigger loadMore call. How can I solve it?

image

mRecyclerView.enableLoadmore(); mAdapter.setCustomLoadMoreView(LayoutInflater.from(mActivity).inflate(R.layout.recycle_bottom_progressbar, null)); mRecyclerView.setOnLoadMoreListener(new UltimateRecyclerView.OnLoadMoreListener() { @Override public void loadMore(int itemsCount, final int maxLastVisiblePosition) { loadMoreData(); } });

jjhesk commented 8 years ago

i think you have to update the new version of this library. the new version fixed this problem and nolonger needed to call enableLoadmore

OVERSKY2003 commented 8 years ago

What you said new version is 0.4.0? I find that it is still required to enableLoadmore in 0.4.0 sample code. If the version is above 0.4.0 which is not released, could you please tell me how can I get the newest version of this library? Please tell the detail steps. thank you very much.