<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg_gradient2">


    <include layout="@layout/backbutton"
        />


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_marginTop="14dp"
        android:layout_marginBottom="10dp"
        android:gravity="center"
        android:orientation="vertical">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:fontFamily="sans-serif"
            android:text="SIGN UP"
            android:textColor="#FFF"
            android:textSize="20sp" />



        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:fontFamily="sans-serif"
            android:text="Register to save your progress and get detailed report"
            android:textAlignment="center"
            android:textColor="#FFFFFF"
            android:textSize="14sp"
            android:autofillHints="username"
            />

        <EditText
            android:id="@+id/reg_username"
            android:layout_width="300dp"
            android:layout_height="42dp"
            android:layout_marginStart="24dp"
            android:layout_marginTop="30dp"
            android:layout_marginEnd="30dp"
            android:ems="10"
            android:hint="Username"
            android:inputType="textPersonName"
            android:selectAllOnFocus="true"
            android:singleLine="true"
            android:visibility="visible"
            android:autofillHints="username"
            />

        <EditText
            android:id="@+id/reg_password"
            android:layout_width="300dp"
            android:layout_height="42dp"
            android:layout_marginStart="24dp"
            android:layout_marginTop="30dp"
            android:layout_marginEnd="30dp"
            android:ems="10"
            android:hint="Password"
            android:inputType="textPassword"
            android:selectAllOnFocus="true"
            android:singleLine="true"
            android:visibility="visible"
            android:autofillHints="password"
            />

        <EditText
            android:id="@+id/firstname"
            android:layout_width="300dp"
            android:layout_height="42dp"
            android:autofillHints="username"
            android:layout_marginStart="24dp"
            android:layout_marginTop="20dp"
            android:layout_marginEnd="30dp"
            android:ems="10"
            android:hint="First Name"
            android:inputType="textPersonName"
            android:selectAllOnFocus="true"
            android:singleLine="true"
            android:visibility="visible" />

        <EditText
            android:id="@+id/lastname"
            android:layout_width="300dp"
            android:layout_height="42dp"
            android:layout_marginStart="24dp"
            android:layout_marginTop="30dp"
            android:layout_marginEnd="30dp"
            android:ems="10"
            android:hint="Last Name"
            android:inputType="textPersonName"
            android:selectAllOnFocus="true"
            android:singleLine="true"
            android:visibility="visible"
            android:autofillHints="username"
            />

        <TextView
            android:id="@+id/dob1"
            android:layout_width="300dp"
            android:layout_height="42dp"
            android:layout_marginStart="24dp"
            android:layout_marginTop="30dp"
            android:layout_marginEnd="30dp"
            android:clickable="true"
            android:ems="10"
            android:hint="Date of birth"
            android:labelFor="@id/dob1"
            android:visibility="visible"
            android:text="@string/Dob"
            />



        <EditText
            android:id="@+id/email_id"
            android:layout_width="300dp"
            android:layout_height="42dp"
            android:layout_marginStart="24dp"
            android:layout_marginTop="30dp"
            android:layout_marginEnd="30dp"
            android:ems="10"
            android:hint="E-Mail ID"
            android:inputType="textEmailAddress"
            android:autofillHints="email"
            />


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="79dp"
            android:layout_marginLeft="30dp"
            android:layout_marginTop="10dp"
            android:orientation="horizontal"
            android:weightSum="10">

            <RadioGroup
                android:id="@+id/radioSex"
                android:layout_width="104dp"
                android:layout_height="wrap_content">

                <RadioButton
                    android:id="@+id/radioButton3"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="3.33"
                    android:text="Male"
                    android:visibility="visible"
                    android:onClick="checkButton"
                    />

                <RadioButton
                    android:id="@+id/radioButton4"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="3.33"
                    android:text="Female"
                    android:visibility="visible"
                    android:onClick="checkButton"/>

                <RadioButton
                    android:id="@+id/radioButton5"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="3.33"
                    android:text="Others"
                    android:visibility="visible"
                    android:onClick="checkButton"
                    />

            </RadioGroup>

            <LinearLayout
                android:id="@+id/input_group"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"

                android:layout_marginLeft="25dp"
                android:layout_marginRight="25dp"
                android:layout_marginBottom="132dp"
                android:gravity="center"
                android:orientation="vertical">


            </LinearLayout>

        </LinearLayout>


        <TextView
            android:id="@+id/signIn_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="3dp"
            android:clickable="true"
            android:fontFamily="sans-serif"
            android:padding="10dp"
            android:text="Already Have an Account?  Sign in"
            android:textAllCaps="true"
            android:textColor="#FFFFFF"
            android:textSize="13sp"
            android:textStyle="bold"
            android:focusable="true"
            />

        <Button
            android:id="@+id/signup_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:background="@drawable/button"

            android:text="SIGN UP"
            android:textAllCaps="false"
            android:textColor="#ff9966"
            android:textSize="17sp" />


    </LinearLayout>

</RelativeLayout>