EDIT:
Does TableLayout not work properly? I see most of you say use relative layout, and skip tableview?

The SPACE on after Data 1 and Data 2 I was trying to get rid of. If I put the same XML code without the TableLayout then it looks to be ok. What do I change?
The 3rd row with the “100” I wanted 2 entry textviews on the right side. I have tried everything I can think of and it will not go to the right. I removed the 2nd textview to see if that helped, but didnt make much difference.
Can anyone tell me what I did wrong? thank you!
Here is the XML:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TableLayout android:layout_width="fill_parent"
android:stretchColumns="*" android:layout_height="fill_parent"
android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="6px">
<TableRow style="@style/FormRows" android:layout_marginTop="15sp">
<Button android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="5px"
android:layout_span="3" android:layout_weight="1" android:text="Save"
android:id="@+id/dgSave" />
</TableRow>
<TableRow style="@style/FormRows">
<TextView android:layout_width="70sp"
android:layout_height="wrap_content" android:textSize="16sp"
android:layout_weight="1" android:text="Data 1" />
<Spinner android:id="@+id/dgData0" android:layout_weight="2"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
</TableRow>
<TableRow>
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content">
<EditText android:text="100" android:selectAllOnFocus="true"
android:imeOptions="actionNext" android:numeric="integer"
android:width="100sp" android:id="@+id/dgWarn0" android:gravity="right"
android:layout_height="wrap_content" android:layout_weight="1"
android:layout_gravity="right" android:layout_span="2" />
<EditText android:text="100" android:selectAllOnFocus="true"
android:imeOptions="actionNext" android:numeric="integer"
android:width="100sp" android:id="@+id/dgWarn1" android:gravity="right"
android:layout_height="wrap_content" android:layout_weight="1"
android:layout_gravity="right" android:layout_span="2" />
</LinearLayout>
</TableRow>
<TableRow style="@style/FormRows">
<TextView android:layout_width="70sp"
android:layout_height="wrap_content" android:textSize="16sp"
android:layout_weight="1" android:text="Data 2" />
<Spinner android:id="@+id/dgData1" android:layout_weight="2"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
</TableRow>
</TableLayout>
</ScrollView>
THANK YOU! for any help!!!
Mark
Here’s what a RelativeLayout might look like. I did this kind of quickly… it’s missing some other margins, etc… but it’s a starting point.