CymChad / CymChad/BaseRecyclerViewAdapterHelper

kotlin-android-extensions 和 BaseQuickAdapter 一起用

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

我在MainActivity里有个自定义View 它其中有一个id叫tv_message 我用kotlin-android-extensions的方式直接用这个控件
然后在MainActivity中有个RecyclerView里面一个item的控件也叫tv_message 这个时候 我自定义view中的tv_message.setText()会设置到RecyclerView的item的tv_message中 就是一样的id错乱了 是不是findViewById 用map缓存的问题?

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

Reproduce the behavior described in MainActivity using the custom View and the RecyclerView item, both of which contain a tv_message view, with kotlin-android-extensions and BaseQuickAdapter. Start by checking the view lookup and caching behavior around findViewById; done means determining whether the wrong view is selected and identifying the affected lookup path.

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
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.