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:
You can't inflate just any view in a RemoteView. Change your View to an empty TextView or ImageView.
A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:
FrameLayout LinearLayout RelativeLayoutAnd the following widget classes:
AnalogClock Button Chronometer ImageButton ImageView ProgressBar TextView ViewFlipper ListView GridView StackView AdapterViewFlipperDescendants of these classes are not supported.
Reference: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout