CymChad / CymChad/BaseRecyclerViewAdapterHelper

getMultiTypeDelegate().addItemType(WorkType, R.layout.item_notice);

Open
#3,466 0 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

getMultiTypeDelegate().addItemType(WorkType, R.layout.item_notice);
这样设置一种布局类型,在convert怎么隐藏这个布局呢,setgone之后,变空白,大小是有数据时候的大小,
怎么解决呢?还是不能隐藏

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 tracing getMultiTypeDelegate().addItemType(WorkType, R.layout.item_notice) into the convert path and inspect how setGone affects the item view. Done means the WorkType layout can be hidden without leaving the original item height or blank space.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.