I am trying to create my own NotificationManager layout, here is my layout file
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutnotification" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="3dp" android:background="@color/btn_bg_blue"> <ImageView android:id="@+id/image" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_height= "50dp" android:layout_width= "50dp" /> <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/image" style="@style/NotificationTitle" /> <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/image" android:layout_below="@id/title" style="@style/NotificationText" /> </RelativeLayout>
currently the notification appears as follows, but the problem is that the notification layout does not cover the entire width (on the right side), although I set layout_width to fill_parent , so I want the blue color to cover the entire width.

source share