Newer
Older
hxrq_app / app / src / main / res / layout / activity_login.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white">

    <ImageView
        android:layout_width="384px"
        android:layout_height="384px"
        android:layout_centerHorizontal="true"
        android:layout_marginVertical="100dp"
        android:background="@mipmap/hxrq" />

    <LinearLayout
        android:id="@+id/l"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_marginHorizontal="30dp"
        android:orientation="vertical">

        <EditText
            android:id="@+id/userNameView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:drawableStart="@mipmap/user"
            android:drawablePadding="5dp"
            android:hint="请输入手机号/用户名"
            android:paddingHorizontal="5dp"
            android:singleLine="true" />

        <EditText
            android:id="@+id/userPasswordView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:drawableStart="@mipmap/lock"
            android:drawablePadding="5dp"
            android:hint="请输入密码"
            android:inputType="textPassword"
            android:paddingHorizontal="5dp"
            android:singleLine="true" />

        <CheckBox
            android:id="@+id/rememberPasswordView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="记住密码" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/l"
        android:layout_alignParentBottom="true"
        android:orientation="vertical">

        <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
            android:id="@+id/loginButton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="30dp"
            android:layout_marginTop="30dp"
            android:gravity="center"
            android:paddingVertical="7dp"
            android:text="登 录"
            android:textColor="@color/white"
            android:textSize="@dimen/titleFontSize"
            app:qmui_backgroundColor="@color/mainThemeColor"
            app:qmui_radius="5dp" />

        <TextView
            android:id="@+id/faceLoginView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:paddingVertical="20dp"
            android:text="人脸识别登录"
            android:textColor="@color/mainThemeColor"
            android:textSize="@dimen/textFontSize" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/bg_enter_bottom" />

            <com.qmuiteam.qmui.alpha.QMUIAlphaImageButton
                android:id="@+id/changeServerConfigButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_alignParentBottom="true"
                android:layout_margin="15dp"
                android:background="@drawable/bg_button"
                android:elevation="5dp"
                android:padding="5dp"
                android:src="@drawable/ic_settings" />
        </RelativeLayout>
    </LinearLayout>
</RelativeLayout>