Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

當禁止上拉refresh,只同意下滑load more時,需下滑兩次才能觸發 #16

Open
AmbroseChen opened this issue Feb 25, 2020 · 0 comments

Comments

@AmbroseChen
Copy link

LinearLayoutManager linearLayoutManager1 = new LinearLayoutManager(MessageActivity.this);
linearLayoutManager1.setOrientation(LinearLayoutManager.VERTICAL);
recyclerviewMessage.setLayoutManager(linearLayoutManager1);
recyclerviewMessage.setItemAnimator(new DefaultItemAnimator());
recyclerviewMessage.setPullRefreshEnabled(false);
recyclerviewMessage.setLoadingMoreEnabled(true);
recyclerviewMessage.setLoadingMoreProgressStyle(ProgressStyle.BallSpinFadeLoader);
recyclerviewMessage.setFootViewText("資料讀取中","");
recyclerviewMessage.setAdapter(messageAdapter);

當 上拉及下滑都是true時,可以順暢操作。但 如果將上拉 改成false 下滑 維持true時,直接下滑是無法觸發load more的要下滑第二次才會觸發,或者先上拉 再下滑才能觸發load more。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant