You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
When the list.size()==0,Not need to call setupMoreListener.
When I call setRefreshListener, @OverRide
public void onRefresh() {
pageNumber = 1;
list.clear();
adapter.notifyDataSetChanged();
getFriendHttp();
}
Because I call "list.clear();adapter.notifyDataSetChanged();",So the list.size()==0,and will call setupMoreListener.
Normally,when I call refreshListener,it need not to call setupmorelistener.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
private void processOnMore() {
RecyclerView.LayoutManager layoutManager = mRecycler.getLayoutManager();
int lastVisibleItemPosition = getLastVisibleItemPosition(layoutManager);
int visibleItemCount = layoutManager.getChildCount();
int totalItemCount = layoutManager.getItemCount();
When the list.size()==0,Not need to call setupMoreListener.
When I call setRefreshListener,
@OverRide
public void onRefresh() {
pageNumber = 1;
list.clear();
adapter.notifyDataSetChanged();
getFriendHttp();
}
Because I call "list.clear();adapter.notifyDataSetChanged();",So the list.size()==0,and will call setupMoreListener.
Normally,when I call refreshListener,it need not to call setupmorelistener.
The text was updated successfully, but these errors were encountered: