<?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"/>
    
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:orientation="vertical" 
        android:gravity="center">

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

            <Spinner
                android:id="@+id/dh_signin_history"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dh_40dp"
                android:background="@drawable/dh_gray_stroke"
                android:popupBackground="@drawable/dh_gray_stroke"
                android:spinnerMode="dropdown"
                android:visibility="invisible" />

            <EditText
                android:id="@+id/dh_signin_name"
                style="@style/dh_signin_edittext"
                android:drawableLeft="@drawable/dh_head"
                android:drawableRight="@drawable/dh_downarrow"
                android:hint="@string/dh_account_hint"
                android:imeOptions="actionNext"
                android:inputType="textPersonName"
                android:visibility="visible" />
        </FrameLayout>

        <EditText
            android:visibility="visible"
            android:id="@+id/dh_signin_pwd"
            style="@style/dh_signin_edittext"
            android:drawableLeft="@drawable/dh_pwd"
            android:hint="@string/dh_pwd_hint"
            android:imeOptions="actionDone"
            android:inputType="textPassword" />
    </LinearLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/dh_btn_thick">

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

        <Button
            android:layout_alignParentRight="true"
            android:id="@+id/dh_signup"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="@color/dh_transparent"
            android:gravity="center_vertical|right"
            android:paddingRight="@dimen/dh_12dp"
            android:paddingLeft="@dimen/dh_12dp"
            android:text="@string/dh_signup_hint"
            android:textColor="@color/dh_txt_gray_light"
            android:textSize="@dimen/dh_txt_tiny" />

    </RelativeLayout>

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

    <Button
        android:id="@+id/dh_forgot_pwd"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/dh_transparent"
        android:paddingTop="@dimen/dh_10dp"
        android:paddingBottom="@dimen/dh_10dp"
        android:text="@string/dh_forgot_pwd"
        android:textColor="@color/dh_txt_gray_light"
        android:textSize="@dimen/dh_txt_tiny" />
    
</LinearLayout>