<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/dh_dialog"
    android:orientation="vertical">

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

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/dh_5dp"
        android:layout_marginBottom="@dimen/dh_12dp">

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:layout_centerInParent="true"
            android:background="@color/dh_txt_gray_light" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:background="#FFF"
            android:paddingLeft="15dp"
            android:paddingRight="15dp"
            android:text="@string/dh_signup_title"
            android:textColor="#666666"
            android:textSize="@dimen/dh_txt_tiny" />

    </RelativeLayout>

    <EditText
        android:visibility="gone"
        android:id="@+id/dh_signup_name"
        style="@style/dh_signin_edittext"
        android:layout_marginBottom="@dimen/dh_8dp"
        android:drawableLeft="@drawable/dh_head"
        android:hint="@string/dh_account_hint"
        android:maxLength="20"
        android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"
        android:imeOptions="actionNext"
        android:inputType="textPersonName" />
    
    <EditText
        android:id="@+id/dh_signup_mail"
        style="@style/dh_signin_edittext"
        android:layout_marginBottom="@dimen/dh_8dp"
        android:drawableLeft="@drawable/dh_head"
        android:hint="@string/dh_email_hint"
        android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_.%+-@"
        android:imeOptions="actionNext"
        android:inputType="textEmailAddress" />

    <EditText
        android:id="@+id/dh_signup_pwd"
        style="@style/dh_signin_edittext"
        android:drawableLeft="@drawable/dh_pwd"
        android:hint="@string/dh_pwd_hint"
        android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"
        android:imeOptions="actionNext"
        android:inputType="textPassword" />
    
    <EditText
        android:id="@+id/dh_signup_pwd_confirm"
        style="@style/dh_signin_edittext"
        android:layout_marginTop="@dimen/dh_8dp"
        android:drawableLeft="@drawable/dh_pwd"
        android:hint="@string/dh_pwd_confirm_hint"
        android:imeOptions="actionDone"
        android:inputType="textPassword" />
    
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <CheckedTextView
            android:id="@+id/dh_signup_terms"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingTop="@dimen/dh_12dp"
            android:paddingBottom="@dimen/dh_12dp"
            android:paddingLeft="@dimen/dh_8dp"
            android:gravity="center_vertical"
            android:drawableLeft="@drawable/dh_checkbox"
            android:drawablePadding="@dimen/dh_12dp"
            android:checked="true" />
        
        <TextView
            android:id="@+id/dh_terms_link"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:text="@string/dh_signup_terms"
            android:textSize="@dimen/dh_txt_tiny"
            android:textColor="@color/dh_txt_gray_light"/>
        
    </LinearLayout>

    <Button
        android:id="@+id/dh_signup"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dh_btn_thick"
        android:layout_marginBottom="30dp"
        android:background="@drawable/dh_signin_btn"
        android:text="@string/dh_continue"
        android:textColor="@color/dh_txt_white"
        android:textSize="@dimen/dh_txt_tiny"/>


</LinearLayout>