I am following this example (First comment), How to create a custom ListView with "extends Activity"?
What i want is to make that exact same list but without that TextView at the top. Tried to delete it but had to reinstate it since the array adapter will not work without one (?)
So i got this code, see below, is working but i am a bit unhappy with my margin solution. I would like to do the same but with no margin. Margin far down at the bottom: android:layout_marginTop="20dip"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffccd0"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#ffb0b6"
android:textColor="#b3000d"
android:textStyle="bold"
android:typeface="sans"
android:visibility="invisible" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#570000" >
<TextView
android:id="@+id/tv_1"
android:layout_width="70dip"
android:layout_height="wrap_content"
android:gravity="center_vertical|left"
android:paddingLeft="20dip"
android:text="Abbr"
android:textColor="#FFFFFF"
android:textSize="16dip"
android:textStyle="bold"
android:typeface="serif" >
</TextView>
<TextView
android:id="@+id/tv_2"
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/tv_1"
android:gravity="center_vertical|left"
android:text="Countries"
android:textColor="#FFFFFF"
android:textSize="16dip"
android:textStyle="bold"
android:typeface="serif" >
</TextView>
</RelativeLayout>
<ListView
android:id="@+id/lv_country"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000" android:layout_marginTop="20dip">
</ListView>
</RelativeLayout>