CymChad / CymChad/BaseRecyclerViewAdapterHelper
关于预加载的问题
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
setPreLoadNumber(0) 无效问题
最近项目中列表的刷新和加载更多的方向有所改变,和平时的反过来了,而且上拉后需要定位到最底部的一个item,这样用这个框架就出现了问题.
个人的一点建议
可以取消预加载数>=1的限制,让开发者自己来设置,默认值给1即可.
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 locating the setPreLoadNumber implementation and the validation that rejects zero. Trace how the preload value is used in list refresh and load-more behavior, then verify that zero is accepted while the default remains 1. Done means callers can configure setPreLoadNumber(0) without it being overridden or rejected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100