<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".activity.InitDevAccountActivity"
    android:gravity="fill_vertical" >

    <RelativeLayout
        android:id="@+id/search_device"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:id="@+id/pwd_liner"
            android:layout_width="match_parent"
            android:layout_height="45dp"
            android:orientation="horizontal"
            android:background="@drawable/divier"
            android:layout_marginTop="5dp"
            android:weightSum="2">

            <android.support.design.widget.TextInputLayout
                android:id="@+id/pwd_text_input"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="2">

                <com.company.netsdk.common.ClearEditText
                    android:id="@+id/sn_et"
                    android:layout_marginTop="10dp"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="13sp"
                    android:hint="@string/smartconfig_sn"
                    android:background="@null"/>
            </android.support.design.widget.TextInputLayout>

            <ImageButton
                android:id="@+id/scan_button"
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:background="@drawable/scan_img"
                android:scaleType="fitCenter"
                android:layout_weight="1"/>
        </LinearLayout>

        <Button
            android:textAllCaps="false"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:text="@string/config_startsearchdevice"
            android:id="@+id/device_search_button"
            android:layout_marginTop="80dp" />
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/init_dev_account"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/search_device"
        android:layout_marginTop="16dp"
        android:visibility="gone">

        <TextView
            android:id="@+id/device_info"
            android:layout_width="match_parent"
            android:gravity="center"
            android:layout_height="100dp"
            android:background="@drawable/text_border"/>

        <LinearLayout
            android:id="@+id/user_liner"
            android:layout_width="match_parent"
            android:layout_height="45dp"
            android:layout_marginTop="10dp"
            android:background="@drawable/divier"
            android:layout_below="@+id/device_info"
            android:visibility="visible">

            <android.support.design.widget.TextInputLayout
                android:id="@+id/user_text_input"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <EditText
                    android:id="@+id/init_user_et"
                    android:layout_marginTop="10dp"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="13sp"
                    android:text="admin"
                    android:enabled="false"
                    android:hint="@string/activity_iplogin_username"
                    android:background="@null"/>
            </android.support.design.widget.TextInputLayout>

        </LinearLayout>

        <LinearLayout
            android:id="@+id/passwd_liner"
            android:layout_width="match_parent"
            android:layout_height="45dp"
            android:orientation="horizontal"
            android:background="@drawable/divier"
            android:layout_marginTop="10dp"
            android:layout_below="@+id/user_liner"
            android:weightSum="2">

            <android.support.design.widget.TextInputLayout
                android:id="@+id/passwd_text_input"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="2">

                <com.company.netsdk.common.ClearEditText
                    android:id="@+id/init_passwd_edit"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="13sp"
                    android:text="admin123"
                    android:hint="@string/please_input_init_passwd"
                    android:inputType="textPassword"
                    android:background="@null"/>

            </android.support.design.widget.TextInputLayout>

            <com.company.netsdk.common.EyeImageButton
                android:id="@+id/eye_button_passwd"
                android:layout_width="35dp"
                android:layout_height="45dp"
                android:background="@drawable/mobile_closeeye"
                android:scaleType="fitCenter"
                android:layout_weight="1"/>
        </LinearLayout>

        <LinearLayout
            android:id="@+id/phone_liner"
            android:layout_width="match_parent"
            android:layout_height="45dp"
            android:orientation="horizontal"
            android:background="@drawable/divier"
            android:layout_marginTop="10dp"
            android:layout_below="@+id/passwd_liner"
            android:visibility="visible">

            <android.support.design.widget.TextInputLayout
                android:id="@+id/phone_text_input"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <com.company.netsdk.common.ClearEditText
                    android:id="@+id/init_phone_et"
                    android:layout_marginTop="10dp"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="13sp"
                    android:hint="@string/please_input_init_phone"
                    android:background="@null"/>
            </android.support.design.widget.TextInputLayout>
        </LinearLayout>

       <LinearLayout
           android:id="@+id/mail_liner"
           android:layout_width="match_parent"
           android:layout_height="45dp"
           android:layout_marginTop="10dp"
           android:background="@drawable/divier"
           android:layout_below="@+id/passwd_liner"
           android:visibility="gone">

            <android.support.design.widget.TextInputLayout
                android:id="@+id/mail_text_input"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <com.company.netsdk.common.ClearEditText
                    android:id="@+id/init_mail_et"
                    android:layout_marginTop="10dp"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:textSize="13sp"
                    android:hint="@string/please_input_init_mail"
                    android:background="@null"/>
            </android.support.design.widget.TextInputLayout>

       </LinearLayout>

        <Button
            android:textAllCaps="false"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:text="@string/device_initialize"
            android:id="@+id/device_initialize_button"
            android:layout_below="@+id/passwd_liner"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_marginTop="73dp" />

    </RelativeLayout>
</RelativeLayout>
