White Space in Custom Status Bar Notification Android

My background color is not filling entire layout in Custom Statusbar view. Any idea why?

Here is screenshot (updated to simplify):

在这里输入图像描述

There is a padding of white space to the right of the blank black area. Here is the complete layout:

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

Can anyone help with this please?


I spoke with Google developers directly and this is how this view is intended. Because I chose a black background it is visible. Google suggests sticking with the default background color which in turn does not show this space.

链接地址: http://www.djcxy.com/p/5318.html

上一篇: 平铺的背景偶尔会被拉伸

下一篇: 自定义状态栏通知Android中的空白区域