CymChad / CymChad/BaseRecyclerViewAdapterHelper
kotlin-android-extensions 和 BaseQuickAdapter 一起用
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
- 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
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