<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TableLayout android:layout_height="match_parent" android:layout_width="match_parent" android:layout_margin="20dp" android:stretchColumns="3"> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/server_host" android:gravity="center_vertical"/> <EditText android:id="@+id/serverHostField" android:text="10.0.2.2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="text" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/server_port" android:gravity="center_vertical"/> <EditText android:id="@+id/serverPortField" android:text="8080" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="text" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/username" android:gravity="center_vertical"/> <EditText android:id="@+id/usernameField" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="textPersonName" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/password" android:gravity="center_vertical"/> <EditText android:id="@+id/passwordField" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="textPassword" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/first_name" android:gravity="center_vertical"/> <EditText android:id="@+id/firstNameField" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="textPersonName" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/last_name" android:gravity="center_vertical"/> <EditText android:id="@+id/lastNameField" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="textPersonName" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/email" android:gravity="center_vertical"/> <EditText android:id="@+id/emailField" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_span="3" android:inputType="textEmailAddress" /> </TableRow> <TableRow> <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/gender" android:gravity="center_vertical"/> <RadioGroup android:id="@+id/genderOptions" android:orientation='horizontal' android:layout_margin="0dp" android:padding="0dp"> <RadioButton android:text="@string/male_option" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="0dp" android:padding="0dp" android:checked = "true" android:id="@+id/maleOption"/> <RadioButton android:text="@string/female_option" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" android:id="@+id/femaleOption" /> </RadioGroup> </TableRow> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="horizontal" android:paddingTop="32dp"> <Button android:id="@+id/login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6dp" android:text="Sign In" android:enabled="false"/> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6dp" android:text="Register" android:id="@+id/register_button" android:enabled="false"/> </LinearLayout> </TableLayout> </ScrollView>