<?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:background="@mipmap/background"
    android:clipToPadding="true"
    android:fitsSystemWindows="true"
    android:orientation="vertical"
    tools:context=".activity.LoginActivity">

    <include
        layout="@layout/toolbar"
        android:visibility="gone" />

    <LinearLayout
        android:id="@+id/linearLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="180px"
        android:orientation="vertical">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:text="@string/app_full_name"
            android:textColor="#ffffff"
            android:textSize="50px" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10px"
            android:gravity="center"
            android:text="版本1.0.0"
            android:textColor="#ffffff"
            android:textSize="35px"
            android:visibility="gone" />
    </LinearLayout>


    <TextView
        android:id="@+id/tv_version"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="50px"
        android:gravity="center"
        android:text="版本1.0.0"
        android:textColor="#ffffff"
        android:textSize="25px"
        android:visibility="visible" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentStart="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentBottom="true"
        android:gravity="center"
        android:orientation="vertical">

        <EditText
            android:id="@+id/et_use"
            style="@style/editTextTheme"
            android:layout_width="550px"
            android:layout_marginLeft="@dimen/px_20"
            android:layout_marginRight="@dimen/px_20"
            android:gravity="center"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:hint="用户名"
            android:digits="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
            android:textColor="#ffffff" />

        <EditText
            android:id="@+id/et_pwd"
            style="@style/editTextTheme"
            android:layout_width="550px"
            android:layout_marginLeft="@dimen/px_20"
            android:layout_marginTop="@dimen/px_20"
            android:layout_marginRight="@dimen/px_20"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:gravity="center"
            android:hint="密码"
            android:inputType="textPassword"
            android:textColor="#ffffff" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="100px"
            android:layout_gravity="center"
            android:visibility="gone"
            android:gravity="center">

            <CheckBox
                android:id="@+id/save_pw_user"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="5px"
                android:checked="true"
                android:gravity="center_vertical"
                android:text="记住密码"
                android:textColor="#ffffff"
                android:textSize="35px" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_gravity="center"
            android:visibility="visible"
            android:gravity="center">

            <RadioGroup
                android:id="@id/rg"
                android:layout_width="wrap_content"
                android:layout_height="40dp"
                android:layout_gravity="center"
                android:gravity="center"
                android:orientation="horizontal">

                <RadioButton
                    android:id="@+id/rb1"
                    style="@style/Widget.AppCompat.CompoundButton.RadioButton"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="10dp"
                    android:text="内网" />

                <RadioButton
                    android:id="@+id/rb2"
                    style="@style/Widget.AppCompat.CompoundButton.RadioButton"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:checked="true"
                    android:text="外网" />


            </RadioGroup>
        </LinearLayout>

        <Button
            android:id="@+id/btn_login"
            style="@style/button"
            android:layout_width="550px"
            android:layout_marginLeft="@dimen/px_20"
            android:layout_marginTop="@dimen/px_40"
            android:layout_marginRight="@dimen/px_20"
            android:text="登录" />
    </LinearLayout>
</RelativeLayout>
