I'm trying to add a title to my the elements of my listview. Right now all the information is populated from a static array which consists of several elements but basically now is an Image followed by several different textviews. I would like to have a title bar above the image and textviews but still contained with in the scrollview element (Does this make sense? I'm still trying to get programming jargon down, haha.) I've tried adding a relative layout/textview/tablerow above the imageview to no avail.
Here is the LayoutCode
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="100sp"
android:layout_height="100sp"
android:layout_marginRight="6dip"
android:src="@drawable/car1" />
<LinearLayout
android:orientation="vertical"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/make"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:gravity="center_vertical"
android:textColor="#000"
/>
</LinearLayout>
</LinearLayout>
This is all contained in this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout android:orientation="vertical" android:background="@drawable/banner"
android:layout_width="fill_parent" android:layout_height="50sp" android:gravity="center" >
</RelativeLayout>
<RelativeLayout android:orientation="vertical"
android:background="#FFFFF0" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:gravity="fill_vertical">
<Button android:text="Change Location" android:id="@+id/ListingsLocationbtn"
android:layout_height="wrap_content" android:gravity="center"
android:layout_width="100sp" android:layout_margin="3sp"></Button>
<Button android:id="@+id/ListingsDetailsbtn" android:text="Details"
android:layout_toRightOf="@+id/ListingsLocationbtn"
android:layout_alignTop="@+id/ListingsLocationbtn"
android:layout_alignBottom="@+id/ListingsLocationbtn"
android:layout_height="match_parent" android:gravity="center|center_vertical"
android:layout_width="100sp" android:layout_margin="3sp"></Button>
<Button android:layout_height="wrap_content" android:id="@+id/ListingsFilterbtn"
android:text="Filter Results" android:layout_alignParentRight="true"
android:layout_width="100sp" android:gravity="center"
android:layout_margin="3sp"></Button>
</RelativeLayout>
<RelativeLayout android:orientation="vertical"
android:background="#FFFFF0" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:gravity="fill_vertical">
<TextView android:id="@+id/zipcodeTV" android:paddingTop="2sp"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:textColor="#000" android:textStyle="bold"/>
</RelativeLayout>
<ListView android:id="@+id/android:list" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#FFFFF0" />
<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:text="@string/main_no_items" android:textColor="#000" />
</LinearLayout>
*I deleted some of the textviews as my code didn't take over the entire page

Thanks in advance for the help :)!

