gpt4 book ai didi

android - 自定义状态栏通知 Android 中的空白

转载 作者:行者123 更新时间:2023-11-29 22:22:21 25 4
gpt4 key购买 nike

我的背景颜色没有填满自定义 Statusbar View 中的整个布局。知道为什么吗?

这是屏幕截图(已更新以简化):

enter image description here

在空白的黑色区域右侧有一个空白填充。这是完整的布局:

<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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com