CymChad / CymChad/BaseRecyclerViewAdapterHelper
addFooterView在layoutmanager为GridLayoutManager(context, 2)时异常
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
addFooterView在layoutmanager为GridLayoutManager(context, 2)时异常,显示的宽度只有一半,不符合需求,footer的宽度应该是recyclerview的宽度而不是item的宽度
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 reproducing the issue with addFooterView and GridLayoutManager(context, 2), then trace the footer layout behavior in the adapter implementation. Done means the footer spans the full RecyclerView width rather than one grid item; add or update a regression test if the project has coverage for this behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100