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

        <ImageButton
            android:id="@+id/dh_close_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:background="@color/dh_transparent"
            android:src="@drawable/dh_close"/>

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="40dp"
            android:src="@drawable/dh_registration_logo"
            android:layout_centerInParent="true"/>

    </RelativeLayout>

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

        <TextView
            android:layout_marginTop="@dimen/dh_vertial_margin"
            android:gravity="center"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="#666666"
            android:text="该帐号暂未激活, 请激活后进入游戏"
            android:textColorHint="#666666"
            android:lines="1"
            android:textSize="@dimen/dh_txt_small"/>

        <LinearLayout
            android:orientation="vertical"
            android:layout_marginTop="@dimen/dh_vertial_margin"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <EditText
                android:id="@+id/dh_registration_edt"
                android:paddingLeft="@dimen/dh_12dp"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:drawableLeft="@drawable/dh_gift"
                android:background="@null"
                android:drawablePadding="@dimen/dh_10dp"
                android:hint="请输入激活码"
                android:textSize="@dimen/dh_txt_small"
                android:digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
                android:imeOptions="actionDone"
                android:inputType="text"/>

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="@color/dh_gray_light"/>

        </LinearLayout>

        <Button
            android:layout_marginTop="@dimen/dh_5dp"
            android:id="@+id/dh_registration_btn"
            android:layout_width="match_parent"
            android:layout_height="@dimen/dh_btn_thick"
            android:background="@drawable/dh_btn_green_bg"
            android:text="激活"
            android:textColor="@color/dh_txt_white"
            android:textSize="@dimen/dh_txt_tiny"/>
        
        <Button
            android:visibility="visible"
            android:id="@+id/dh_switch_btn"
            android:layout_width="match_parent"
            android:layout_height="@dimen/dh_btn_thick"
            android:layout_marginTop="@dimen/dh_10dp"
            android:background="@drawable/dh_gray_stroke"
            android:text="已有激活帐号"
            android:textColor="@color/dh_txt_gray_dark"
            android:textSize="@dimen/dh_txt_tiny"/>

    </LinearLayout>

</LinearLayout>