CymChad / CymChad/BaseRecyclerViewAdapterHelper
bug:1.setEmptyView 如果直接传入id 不起作用 2.nestscrollview 嵌套recyclerview emptyview高度显示不对
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
版本: implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
- mainAdapter.setEmptyView(R.layout.emptyview);
该方式显示不生效
2.nestscrollview 嵌套recyclerview emptyview高度显示不对
空布局

recyclerview

最终显示效果,正常来说 是铺满屏幕才对 但是实际高度只有textview的高度 。如果textview 高度是100dp 那么empty只显示100dp
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 both reports with BaseRecyclerViewAdapterHelper 3.0.4: setEmptyView(R.layout.emptyview) and an empty RecyclerView nested in NestedScrollView. Trace the setEmptyView entry point and the empty-layout measurement path. Done means the resource-id overload displays the empty view and the nested empty view fills the expected screen height.
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
- 25/100