-
Notifications
You must be signed in to change notification settings - Fork 343
Open
Labels
寻求帮助Extra attention is neededExtra attention is needed
Description
问题描述
界面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:
Metadata
Metadata
Assignees
Labels
寻求帮助Extra attention is neededExtra attention is needed