java - 如果 BottomSheet 在布局中并且可见,CircleRefreshLayout 不会向后滑动
问题描述
如果布局中存在 BottomSheet 并且其可见性设置为“可见”,则CircleRefreshLayout不会向后滑动。下面是我的 XML 布局。
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorWhite">
<com.tuesda.walker.circlerefresh.CircleRefreshLayout
android:id="@+id/circleRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:AniBackColor="@color/wallet_blue"
app:AniForeColor="@android:color/white"
app:CircleSmaller="4">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--MY_VIEW-->
</FrameLayout>
</com.tuesda.walker.circlerefresh.CircleRefreshLayout>
<FrameLayout
android:id="@+id/bottom_sheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<!--MY_VIEW-->
</FrameLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
当我将“bottom_sheet”的可见性设置为GONE
时,CircleRefreshLayout工作正常(在circleRefreshLayout.finishRefreshing();
调用后向后滑动)但当 bottom_sheet 为“可见”时不会向上滑动。
解决方案
推荐阅读
- json - 如何在脚本/SSM 文档中添加自定义答案?
- neo4j - Cypher - 订购前的不同结果
- reactjs - 有没有办法在 eslint 或 vscode 中自动导入模块?
- ios - 找不到与提供的目的地说明符匹配的目的地
- python - 获取与 Outlook 格式相同的 Outlook 电子邮件 [使用 python]
- c++ - 这是将graphviz用作库的正确方法吗?
- python - 如何使用 Tensorflow 2/Keras 保存和恢复训练具有多个模型部分的 GAN
- python - 无法交互列表
- javascript - 仅当它与 $auth 和 vuejs (nuxt) 一起存在时才显示信息
- python - 如何匹配语句中的变量?