我的背景颜色没有填满自定义 Statusbar
View 中的整个布局。知道为什么吗?
这是屏幕截图(已更新以简化):
在空白的黑色区域右侧有一个空白填充。这是完整的布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff000000"
android:scrollbars="none"></LinearLayout>
有人可以帮忙吗?
最佳答案
我直接与 Google 开发人员交谈,这就是这个 View 的目的。因为我选择了黑色背景,所以它是可见的。 Google 建议坚持使用默认背景颜色,这样就不会显示此空间。
关于android - 自定义状态栏通知 Android 中的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6819858/