MarkoMilos / Paginate

Library for creating simple pagination functionality upon RecyclerView and AbsListView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plzzz help load more at start called two times

kashifandroiddev opened this issue · comments

` public void onLoadMore() {
Log.d("p", "onLoadMore()");
reqExp();
loading = true;

}`

@Override public boolean isLoading() { Log.d("p", "isLoading()"); return loading; }

in my response from network

mUserLst = UserParse.Data(mResponse); mAdopter.add(mUserLst); loading = false;

my problem is that when activity start on load more called two times. i dont understand
Paginate.with(mRv,this) .setLoadingTriggerThreshold(2) .addLoadingListItem(true) .setLoadingListItemCreator(new CustomLoadingListItemCreator()) .build();

@kashifandroiddev can you assert that the value in isLoading() call is false both times ?

i dell the project because your reply is very late .....

do me a favoour
send ma code template that in working well.....

thanks