I'm trying to add 3 headers going from left to right above a ListView. I'm trying to add TextViews to achieve this. I've attached a picture to better demonstrate. Picture
My ListView works as i want it to by itself but I can't seem to get the textViews to align as i want them to.
activity_visualise.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/latitudeHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/listView"
android:layout_alignLeft="@+id/longitudeHeader"
android:text="@string/latitudeHeader"/>
<TextView
android:id="@+id/longitudeHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/listView"
android:text="@string/longitudeHeader"/>
<TextView
android:id="@+id/syncHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/listView"
android:layout_alignRight="@+id/longitudeHeader"
android:text="@string/syncHeader"/>
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
</ListView>
</RelativeLayout>
activity_visualise_row.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_visualise_database"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="org.softshack.VisualiseDatabaseActivity">
<TextView
android:id="@+id/dbLatitude"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/dbLongitude"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/dbReportTime"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/dbSyncStatus"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.35"/>
</LinearLayout>