<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="?android:attr/listPreferredItemHeight"android:padding="6dip"><ImageViewandroid:id="@+id/icon"android:layout_width="wrap_content"android:layout_height="fill_parent"android:layout_marginRight="6dip"android:src="@drawable/icon"/><LinearLayoutandroid:orientation="vertical"android:layout_width="0dip"android:layout_weight="1"android:layout_height="fill_parent"><TextViewandroid:layout_width="fill_parent"android:layout_height="0dip"android:layout_weight="1"android:gravity="center_vertical"android:text="My Application"/><TextViewandroid:layout_width="fill_parent"android:layout_height="0dip"android:layout_weight="1"android:singleLine="true"android:ellipsize="marquee"android:text="Simple application that shows how to use RelativeLayout"/></LinearLayout></LinearLayout>
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="?android:attr/listPreferredItemHeight"android:padding="6dip"><ImageViewandroid:id="@+id/icon"android:layout_width="wrap_content"android:layout_height="fill_parent"android:layout_alignParentTop="true"android:layout_alignParentBottom="true"android:layout_marginRight="6dip"android:src="@drawable/icon"/><TextViewandroid:id="@+id/secondLine"android:layout_width="fill_parent"android:layout_height="26dip"android:layout_toRightOf="@id/icon"android:layout_alignParentBottom="true"android:layout_alignParentRight="true"android:singleLine="true"android:ellipsize="marquee"android:text="Simple application that shows how to use RelativeLayout"/><TextViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:layout_toRightOf="@id/icon"android:layout_alignParentRight="true"android:layout_alignParentTop="true"android:layout_above="@id/secondLine"android:layout_alignWithParentIfMissing="true"android:gravity="center_vertical"android:text="My Application"/></RelativeLayout>