CymChad / CymChad/BaseRecyclerViewAdapterHelper

关于点击事件层级执行循序

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

我有个冲突的例子。 item是一个自定义View,内部实现点击事件。 但是当adapter实现了OnItemClickListener, View内部就无法响应点击事件了。

按照Android事件传递循序, 事件在不拦截的情况下,不是应该由 子View优先处理吗?

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.