<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:tools="http://schemas.android.com/tools"
            android:id="@+id/scroll_view_identify"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

  <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <LinearLayout
      android:id="@+id/linear_layout_identify"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/white"
      android:clickable="true"
      android:focusable="true"
      android:focusableInTouchMode="true"
      android:orientation="vertical">

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5pt"
        android:orientation="vertical">

        <TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="5pt"
          android:text="@string/phone_identify_name"
          android:textSize="20dp"/>

      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">


        <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
          android:id="@+id/edit_text_name"
          android:layout_width="165dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_marginRight="-15pt"
          android:layout_weight="2"
          android:background="@drawable/input_border"
          android:baselineAligned="false"
          android:hint="@string/phone_identify_name_hint"
          android:inputType="textPersonName"
          android:padding="3pt"/>

        <RadioGroup
          android:id="@+id/radio_group_nationality"
          android:layout_width="wrap_content"
          android:layout_height="40dp"
          android:layout_marginLeft="50dp"
          android:layout_marginRight="50dp"
          android:layout_weight="2"
          android:background="@drawable/swicth_out_line"
          android:checkedButton="@+id/offer"
          android:orientation="horizontal">

          <RadioButton
            android:id="@+id/radio_button_local"
            android:layout_width="92dp"
            android:layout_height="match_parent"
            android:layout_marginBottom="1dp"
            android:layout_marginLeft="1dp"
            android:layout_marginTop="1dp"
            android:layout_weight="1"
            android:background="@drawable/toggle_widget_background"
            android:button="@null"
            android:checked="true"
            android:gravity="center"
            android:padding="3pt"
            android:text="@string/phone_identify_local"/>

          <RadioButton
            android:id="@+id/radio_button_foreign"
            android:layout_width="85dp"
            android:layout_height="40dp"
            android:layout_marginBottom="1dp"
            android:layout_marginRight="1dp"
            android:layout_marginTop="1dp"
            android:layout_weight="1"
            android:background="@drawable/toggle_widget_background"
            android:button="@null"
            android:gravity="center"
            android:padding="3pt"
            android:text="@string/phone_identify_foreign"/>
        </RadioGroup>

      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5pt"
        android:orientation="vertical"

        >

        <TextView
          android:id="@+id/text_view_name_validation"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textColor="@color/red"/>

      </LinearLayout>


      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="5pt"
          android:text="@string/phone_identify_birth"
          android:textSize="20dp"/>

      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">


        <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
          android:id="@+id/edit_text_birth_date"
          android:layout_width="165dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_marginRight="-15pt"
          android:layout_weight="2"
          android:background="@drawable/input_border"
          android:hint="@string/phone_identify_birth_hint"
          android:inputType="number"
          android:maxLength="8"
          android:padding="3pt"/>

        <RadioGroup
          android:id="@+id/radio_group_gender"
          android:layout_width="wrap_content"
          android:layout_height="40dp"
          android:layout_marginLeft="50dp"
          android:layout_marginRight="50dp"
          android:layout_weight="2"
          android:background="@drawable/swicth_out_line"
          android:checkedButton="@+id/offer"
          android:orientation="horizontal">

          <RadioButton
            android:id="@+id/radio_button_male"
            android:layout_width="92dp"
            android:layout_height="match_parent"
            android:layout_marginBottom="1dp"
            android:layout_marginLeft="1dp"
            android:layout_marginTop="1dp"
            android:layout_weight="1"
            android:background="@drawable/toggle_widget_background"
            android:button="@null"
            android:checked="true"
            android:gravity="center"
            android:padding="3pt"
            android:text="@string/phone_identify_male"/>

          <RadioButton
            android:id="@+id/radio_button_female"
            android:layout_width="85dp"
            android:layout_height="40dp"
            android:layout_marginBottom="1dp"
            android:layout_marginRight="1dp"
            android:layout_marginTop="1dp"
            android:layout_weight="1"
            android:background="@drawable/toggle_widget_background"
            android:button="@null"
            android:gravity="center"
            android:padding="3pt"
            android:text="@string/phone_identify_female"/>
        </RadioGroup>

      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5pt"
        android:orientation="vertical"

        >

        <TextView
          android:id="@+id/text_view_birth_validation"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textColor="@color/red"/>

      </LinearLayout>


      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="10pt"
        android:orientation="vertical">

        <CheckBox
          android:id="@+id/checkbox_all_agree"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginBottom="3pt"
          android:layout_marginLeft="5pt"
          android:text="@string/phone_identify_all_agree"
          android:textIsSelectable="false"
          android:textSize="20dp"/>

        <View
          android:layout_width="match_parent"
          android:layout_height="2dp"
          android:layout_centerInParent="true"
          android:layout_marginLeft="5pt"
          android:layout_marginRight="5pt"
          android:background="@color/darkGrey"/>
      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:weightSum="5">

        <CheckBox
          android:id="@+id/checkbox_agree1"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_weight="4"
          android:text="@string/phone_identify_agree1"
          android:textSize="20dp"/>

        <TextView
          android:id="@+id/button_identify_agree1"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_marginLeft="5pt"
          android:layout_marginTop="3pt"
          android:layout_weight="1"
          android:text=">"
          android:textAlignment="center"
          android:textSize="15dp"/>
      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:weightSum="5">

        <CheckBox
          android:id="@+id/checkbox_agree2"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_weight="4"
          android:text="@string/phone_identify_agree2"
          android:textSize="20dp"/>

        <TextView
          android:id="@+id/button_identify_agree2"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_marginLeft="5pt"
          android:layout_marginTop="3pt"
          android:layout_weight="1"
          android:text=">"
          android:textAlignment="center"
          android:textSize="15dp"/>
      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:weightSum="5">

        <CheckBox
          android:id="@+id/checkbox_agree3"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_weight="4"
          android:text="@string/phone_identify_agree3"
          android:textSize="20dp"/>

        <TextView
          android:id="@+id/button_identify_agree3"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_marginLeft="5pt"
          android:layout_marginTop="3pt"
          android:layout_weight="1"
          android:text=">"
          android:textAlignment="center"
          android:textSize="15dp"/>
      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:weightSum="5">

        <CheckBox
          android:id="@+id/checkbox_agree4"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_weight="4"
          android:text="@string/phone_identify_agree4"
          android:textSize="20dp"/>

        <TextView
          android:id="@+id/button_identify_agree4"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_marginLeft="5pt"
          android:layout_marginTop="3pt"
          android:layout_weight="1"
          android:text=">"
          android:textAlignment="center"
          android:textSize="15dp"/>
      </LinearLayout>

      <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:orientation="horizontal"
        android:weightSum="4">


        <Spinner
          android:id="@+id/spinner_mobile_company"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:layout_marginRight="5pt"
          android:layout_weight="2"
          android:entries="@array/mobile_companies"/>

        <Spinner
          android:id="@+id/spinner_first_phone_number"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginRight="5pt"
          android:layout_weight="2"
          android:entries="@array/phone_numbers"/>

      </LinearLayout>


      <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
        android:id="@+id/edit_text_phone_number"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5pt"
        android:layout_marginRight="5pt"
        android:hint="@string/phone_identify_phone_hint"
        android:inputType="number"
        android:maxLength="8"/>

      <TextView
        android:id="@+id/text_view_phone_number_validation"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5pt"
        android:textColor="@color/red"
        />


      <Button
        android:id="@+id/button_identify_number_send"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="5pt"
        android:layout_marginLeft="5pt"
        android:layout_marginRight="5pt"
        android:text="@string/phone_identify_submit"/>

    </LinearLayout>

    <LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:weightSum="4">


      <LinearLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="3"
        android:orientation="vertical">

        <kr.co.zumo.app.lifeplus.view.custom.ClearEditText
          android:id="@+id/edit_text_authorized_number"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="5pt"
          android:background="@drawable/input_border"
          android:hint="@string/phone_identify_six_characters"
          android:inputType="number"
          android:maxLength="6"
          android:padding="3pt"/>

        <TextView
          android:id="@+id/text_authorized_number_validation"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5pt"
          android:textColor="@color/red"
          />
      </LinearLayout>

      <Button
        android:id="@+id/button_phone_identify_confirm"
        android:layout_width="0dp"
        android:layout_height="60dp"
        android:layout_marginBottom="5pt"
        android:layout_marginRight="5pt"
        android:layout_marginTop="5pt"
        android:layout_weight="1"
        android:text="@string/phone_identify_confirm"/>

    </LinearLayout>

    <LinearLayout
      android:id="@+id/phone_identify_layout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:isScrollContainer="true"
      android:orientation="horizontal"
      android:visibility="gone"
      android:weightSum="5"
      tools:visibility="visible">

      <TextView
        android:id="@+id/text_view_phone_identify_time"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_margin="5pt"
        android:layout_weight="3"
        android:padding="3pt"
        android:text="@string/phone_identify_time"/>

      <Button
        android:id="@+id/button_phone_identify_time_expansion"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="2"
        android:text="@string/phone_identify_time_delay"/>

    </LinearLayout>
  </LinearLayout>
</ScrollView>