8000 关闭下拉刷新,滑动事件没有传递给父组件 · Issue #489 · liangjingkanji/BRV · GitHub
[go: up one dir, main page]

Skip to content
8000
< 8000 link rel="modulepreload" href="https://github.githubassets.com/assets/90-cf0684c4a30f613d.js" crossorigin="anonymous" />

关闭下拉刷新,滑动事件没有传递给父组件 #489

Open

Description

@594238813

问题描述

界面bottomSheet-ViewPager2-Fragment
-PageRefreshLayout-RecyclerView 关闭下拉刷新,和嵌套滑动 ,后下拉的 动作 没有传递给父组件
能关闭的 已经全部关闭
.setEnableRefresh(false)
.isNestedScrollingEnabled = false
.setEnableOverScrollDrag(false)
.setEnableNestedScroll(false)

mViewBinding?.rvList?.setOnTouchListener { v, event ->
if (event.action == MotionEvent.ACTION_MOVE &&
!mViewBinding?.rvList!!.canScrollVertically(-1)) {
// 到顶了,把事件交给父容器
v.parent.requestDisallowInterceptTouchEvent(false)
}
false
}
只要加载了数据 就滑动不了, setEmpty 都正常,能把bottomSheet 滑动下去

期望结果

期望传递给父组件 关闭 bottomSheet ,这个该怎么配置?

版本

  • BRV: 最新
  • Android:
  • Gradle:
  • Android Studio:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    寻求帮助Extra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0