CymChad / CymChad/BaseRecyclerViewAdapterHelper
关于点击事件层级执行循序
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
我有个冲突的例子。 item是一个自定义View,内部实现点击事件。 但是当adapter实现了OnItemClickListener, View内部就无法响应点击事件了。
按照Android事件传递循序, 事件在不拦截的情况下,不是应该由 子View优先处理吗?
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 the conflict between the custom View's click handling and the adapter's OnItemClickListener, then trace the Android touch-event dispatch path. Compare the behavior with a minimal custom View example; done means the interaction is explained and the library behavior is fixed or clearly documented.
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
- 30/100