|
|
|
|
|
<?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="@color/login_bg"
|
|
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
tools:context=".ui.activity.LoginActivity">
|
|
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
|
android:id="@+id/toolbarView"
|
|
|
|
|
|
layout="@layout/layout_base"
|
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="100px"
|
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:text="珠电e办公"
|
|
|
|
|
|
android:textSize="25sp"
|
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
|
android:id="@+id/iv_logo"
|
|
|
|
|
|
android:layout_width="300px"
|
|
|
|
|
|
android:layout_height="300px"
|
|
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
|
|
android:layout_marginTop="180px"
|
|
|
|
|
|
android:src="@drawable/logo" />
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="500px"
|
|
|
|
|
|
android:layout_below="@id/iv_logo"
|
|
|
|
|
|
android:layout_marginLeft="60px"
|
|
|
|
|
|
android:layout_marginTop="30px"
|
|
|
|
|
|
android:layout_marginRight="60px"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<com.rehome.zhdcoa.weiget.ClearEditText
|
|
|
|
|
|
android:id="@+id/et_username"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="110px"
|
|
|
|
|
|
android:background="@drawable/login_edit"
|
|
|
|
|
|
android:drawableLeft="@drawable/icon_user"
|
|
|
|
|
|
android:drawablePadding="20px"
|
|
|
|
|
|
android:hint="用户名"
|
|
|
|
|
|
android:paddingLeft="30px"
|
|
|
|
|
|
android:paddingRight="20px"
|
|
|
|
|
|
android:textColorHint="@color/gray" />
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="110px"
|
|
|
|
|
|
android:background="@drawable/login_edit1"
|
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
<com.rehome.zhdcoa.weiget.ClearEditText
|
|
|
|
|
|
android:id="@+id/et_password"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
android:background="@null"
|
|
|
|
|
|
android:drawableLeft="@drawable/icon_pwd"
|
|
|
|
|
|
android:drawablePadding="20px"
|
|
|
|
|
|
android:hint="密码"
|
|
|
|
|
|
android:inputType="textPassword"
|
|
|
|
|
|
android:paddingLeft="30px"
|
|
|
|
|
|
android:paddingRight="20px"
|
|
|
|
|
|
android:textColorHint="@color/gray" />
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
android:id="@+id/btn_login"
|
|
|
|
|
|
android:layout_width="130px"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:background="@drawable/btn_gray"
|
|
|
|
|
|
android:text="GO"
|
|
|
|
|
|
android:textColor="@color/white"
|
|
|
|
|
|
android:textSize="35px" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
|
|
android:id="@+id/sw_remember_pwd"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
|
|
android:shadowColor="@color/gray"
|
|
|
|
|
|
android:switchMinWidth="40dp"
|
|
|
|
|
|
android:switchPadding="10dp"
|
|
|
|
|
|
android:checked="true"
|
|
|
|
|
|
android:text="@string/remember_me"
|
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
|
android:thumb="@drawable/thumb"
|
|
|
|
|
|
android:track="@drawable/track"
|
|
|
|
|
|
android:visibility="visible"
|
|
|
|
|
|
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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_marginEnd="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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
|
android:layout_marginBottom="50dp"
|
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/text_wjmm"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:text="忘记密码"
|
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tv_versionCode"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:text="版本号:2.0.6"
|
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
|
android:textStyle="normal" />
|
|
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|