I am trying to figure out how to design the below mentioned input form. So far I have tried TableLayout
to do this. bellow is my code. But failed. Please suggest me how to achieve this, any comment, code, effort would be appreciated.
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#FF939393">
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#FF000000"
android:layout_margin="1dp"
android:weightSum="2">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="First Name"/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginLeft="1dp"
android:text="Last Name" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#FF000000"
android:layout_margin="1dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Email"/>
</TableRow>
</TableLayout>