CymChad / CymChad/BaseRecyclerViewAdapterHelper
loadMoreEnd() 之后无法再次上拉加载更多
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
如果上拉加载更多无数据了,调用loadMoreEnd(gone: Boolean = false)方法,如果用户再次上拉加载更多,均不会重新加载数据,原因是 loadMoreStatus = LoadMoreStatus.End下,监听都没有初始化。我觉得不应该因为LoadMoreStatus.End完全限制死,有可能上一秒没有更多数据,下一秒就有了,而往往用户在没有更多数据的时候,也习惯性的会多上拉几次。建议完善此机制,或者开放loadMoreStatus,让开发人员自我设置场景,甚至可以扩展场景。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the loadMoreStatus state and loadMoreEnd(gone: Boolean) handling described in the issue, then reproduce the sequence where loading ends and the user pulls again. Done should be defined as a subsequent pull being able to trigger loading when data becomes available, or as a clearly configurable end-state behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100