![](/img/trans.png)
[英]Is the Honeycomb Status bar (at the bottom) the same height across devices?
[英]Dialog offset from bottom to status bar height
我已经复制了BottomSheetDialog
和BottomSheetBehavior
的源代码,并使SideSheetDialog
和SideSheetBehavior
对话框可以按预期工作,除了对话框从底部偏移到状态栏的高度外。 当我删除fitsSystemWindows="false"
它的高度一直延伸到整个屏幕(在状态栏下方和软导航栏下方)。 我只希望对话框适合状态栏和软导航栏之间
完整的源代码托管在github中 。
将fitSystemWindows = true更改为false并按预期工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.