I want to make a clean and neat form like so:
Name: ____________
Foo: ____________
Bar: ____________
Whatever: ____________
Every line share the screen height equally (in this case, 25% of full screen), and each TextView should be on the left half of the screen, and EditText should be starting from the center of the screen.
My current solution is (essentially):
<LinearLayout android:orientation="vertical">
<LinearLayout android:orientation="horizontal" weight="1">
<TextView weight="1">
<EditView weight="1">
</LinearLayout>
<LinearLayout android:orientation="horizontal" weight="1">
<TextView weight="1">
<EditView weight="1">
</LinearLayout>
<LinearLayout android:orientation="horizontal" weight="1">
<TextView weight="1">
<EditView weight="1">
</LinearLayout>
<LinearLayout android:orientation="horizontal" weight="1">
<TextView weight="1">
<EditView weight="1">
</LinearLayout>
</LinearLayout>
This works well but creates nested weights, which is bad for performances. Is there a better way to do this in API level 8?