CymChad / CymChad/BaseRecyclerViewAdapterHelper

bug:1.setEmptyView 如果直接传入id 不起作用 2.nestscrollview 嵌套recyclerview emptyview高度显示不对

Open
#3,297 5 comments 0 reactions 0 assignees View on GitHub

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'

  1. mainAdapter.setEmptyView(R.layout.emptyview);
    该方式显示不生效
    2.nestscrollview 嵌套recyclerview emptyview高度显示不对
    空布局
    image
    recyclerview
    image
    最终显示效果,正常来说 是铺满屏幕才对 但是实际高度只有textview的高度 。如果textview 高度是100dp 那么empty只显示100dp

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.