android - 带有手势导航的 Bottomsheetbehavior 行为异常
解决方案
我在我的应用程序中遇到了同样的问题,我使用自定义插入解决了它( 手动使用插入)
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
...
ViewCompat.setOnApplyWindowInsetsListener(binding.rootView) { _, insets ->
val systemGestureInsets = insets.systemGestureInsets
WindowInsetsCompat.Builder()
.setSystemWindowInsets(insets.systemWindowInsets)
.setSystemGestureInsets(systemGestureInsets).build()
}
...
}
推荐阅读
- python - Jupyter kernel points to the wrong Python
- python - 在 Flask 中下载多个文件
- z3 - 量词 + 未解释函数的 Z3 使用建议
- c++ - 架构 arm64 的未定义符号:m1 mac
- javascript - 如何在来自 html 的跨源本地存储之间共享数据以响应 iFrame?
- python - 通过特定值重新采样和插值 Dataframe
- java - 即使当时服务器没有启动,如何确保执行一次运行的石英作业?
- laravel-8 - 作曲家需要 designmynight/laravel-mongodb-passport 未安装在 laravel8 中
- c# - 失去焦点时自定义文本框值消失
- laravel - 未找到 Laravel 8 路线