See Create a custom advanced view on the Android Developers site.
I quote:
Create an XML Layout for an Advanced View. For example, create a layout file called custom_notification_layout.xml and build it like this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="3dp" > <ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="10dp" /> <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:textColor="#000" /> </LinearLayout>
This layout is used for advanced but the contents of ImageView and TextView still need to be determined by application. RemoteViews offers some convenient methods that allow you to define this content ...
source share