I'm struggling to add a vertical line to a custom Android Notification. I've tried adding a view like this to my Relative Layout:
<View
android:id="@+id/line_vertical"
android:layout_width="1dip"
android:layout_height="fill_parent"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/image_logo"
android:background="#0000FF" />
But when I fire the notification, I get the following Exception:
android.app.RemoteServiceException: Bad notification posted from package XXX: Couldn't expand RemoteViews for: StatusBarNotification(package=XXX)
Anybody have any ideas?
<ImageView android:id="@+id/image_logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:contentDescription="@string/app_name" />
– Galvanize