I am trying to have an image be at the left, to the right of that, a vertical list (title, address, and date), and to the right of all the url. I can't seem to get the url to display anywhere but on top of the title. Can anyone point me in the right direction?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip">
<ImageView
android: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"
/>
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="20dip"
android:layout_toRightOf="@id/icon"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:textStyle="bold"
android:singleLine="true"
android:ellipsize="marquee"
/>
<TextView
android:id="@+id/address"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="12dip"
android:layout_toRightOf="@id/icon"
android:layout_alignParentRight="true"
android:layout_below="@id/title"
/>
<TextView
android:id="@+id/date"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/icon"
android:layout_below="@id/address"
android:layout_alignParentRight="true"
android:textSize="12dip"
android:singleLine="true"
android:ellipsize="end" />
<TextView
android:id="@+id/url"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/date"
/>
With this current XML attempt with the url to the right of the @id/date...it doesn't appear at all. If I place it toRightOf="@id/icon" it appears literally on top of, not above, the title.
Thanks for any help!