I understand your problem ... I tried using wrap_content etc. but it didn't work, you need to manually set the height of the EditText .... here is the code:
<?xml version="1.0" encoding="utf-8"?> <TableRow android:id="@+id/tableRow2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="3" > <TextView android:id="@+id/textView2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:text="TextView" /> <TextView android:id="@+id/textView5" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:text="TextView" /> <EditText android:id="@+id/editText1" android:layout_width="fill_parent" android:layout_height="15dp" android:layout_weight="1" /> </TableRow>
source share