brsdk_login.xml 9.3 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    style="@style/brsdk_layout_root"
    tools:layout_width="match_parent"
    tools:layout_marginStart="32dp"
    tools:layout_marginEnd="32dp"
    tools:layout_gravity="center"
    >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        >
        <ImageView
            android:id="@+id/brLogo"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:src="@drawable/brsdk_logo_"
            />
        <TextView
            android:id="@+id/brTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/brsdk_white"
            android:includeFontPadding="false"
            android:textSize="@dimen/brsdk_font_16sp"
            android:text="@string/brsdk_login_text"
            android:layout_marginStart="@dimen/brsdk_space_8dp"
            />
        <View
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="0dp"
            />
        <TextView
            android:id="@+id/brLibrary"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:includeFontPadding="false"
            android:text="@string/brsdk_sdk_name"
            android:textColor="@color/brsdk_white"
            android:textSize="@dimen/brsdk_font_18sp"
            />
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_marginTop="@dimen/brsdk_space_8dp"
        android:background="@drawable/brsdk_r4_white"
        android:gravity="center_vertical"
        >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            >
            <ImageView
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:src="@drawable/brsdk_account_white"
                android:tint="@color/brsdk_gray"
                android:padding="12dp"
                />
            <EditText
                android:id="@+id/brAccount"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:hint="@string/brsdk_account_hint"
                android:textColorHint="@color/brsdk_gray"
                android:textSize="@dimen/brsdk_font_16sp"
                android:background="@android:color/transparent"
                android:textColor="@color/brsdk_444444"
                android:includeFontPadding="false"
                android:importantForAutofill="no"
                android:maxLines="1"
                />
            <ImageView
                android:id="@+id/brRecord"
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:src="@drawable/brsdk_arrow_white"
                android:tint="@color/brsdk_gray"
                android:padding="14dp"
                />
        </LinearLayout>
        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:background="@color/brsdk_gray50"
            />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            >
            <ImageView
                android:layout_width="40dp"
                android:layout_height="40dp"
                android:src="@drawable/brsdk_locked_white"
                android:tint="@color/brsdk_gray"
                android:padding="12dp"
                />
            <EditText
                android:id="@+id/brPassword"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:hint="@string/brsdk_password_hint"
                android:textColorHint="@color/brsdk_gray"
                android:textSize="@dimen/brsdk_font_16sp"
                android:background="@android:color/transparent"
                android:textColor="@color/brsdk_444444"
                android:includeFontPadding="false"
                android:importantForAutofill="no"
                android:inputType="textPassword"
                android:maxLines="1"
                />
            <!--
            importantForAutofill:
            禁止自动填充,防止自动保存提示带来的UI异常
            -->
            <TextView
                android:id="@+id/brForgot"
                android:layout_width="wrap_content"
                android:layout_height="40dp"
                android:gravity="center"
                android:textColor="@color/brsdk_theme"
                android:includeFontPadding="false"
                android:text="@string/brsdk_password_forgot"
                android:textSize="@dimen/brsdk_font_12sp"
                android:paddingStart="@dimen/brsdk_space_8dp"
                android:paddingEnd="@dimen/brsdk_space_8dp"
                />
        </LinearLayout>
    </LinearLayout>

    <TextView
        android:id="@+id/brSubmit"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        android:textColor="@color/brsdk_white"
        android:textSize="@dimen/brsdk_font_18sp"
        android:text="@string/brsdk_login_submit"
        android:background="@drawable/brsdk_r4_theme"
        android:includeFontPadding="false"
        android:layout_marginTop="@dimen/brsdk_space_8dp"
        android:gravity="center"
        />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_marginTop="@dimen/brsdk_space_12dp"
        >
        <View
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="0dp"
            />
        <TextView
            android:id="@+id/brRegPhone"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/brsdk_theme"
            android:includeFontPadding="false"
            android:textSize="@dimen/brsdk_font_12sp"
            android:text="@string/brsdk_reg_phone"
            android:drawableTop="@drawable/brsdk_phone_white"
            android:drawablePadding="@dimen/brsdk_space_4dp"
            />
        <View
            android:layout_width="0dp"
            android:layout_weight="2"
            android:layout_height="0dp"
            />
        <TextView
            android:id="@+id/brRegAccount"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/brsdk_theme"
            android:includeFontPadding="false"
            android:textSize="@dimen/brsdk_font_12sp"
            android:text="@string/brsdk_reg_account"
            android:drawableTop="@drawable/brsdk_account_white"
            android:drawablePadding="@dimen/brsdk_space_4dp"
            />
        <View
            android:layout_width="0dp"
            android:layout_weight="2"
            android:layout_height="0dp"
            />
        <TextView
            android:id="@+id/brRegQuick"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/brsdk_theme"
            android:includeFontPadding="false"
            android:textSize="@dimen/brsdk_font_12sp"
            android:text="@string/brsdk_reg_quick"
            android:drawableTop="@drawable/brsdk_quick_white"
            android:drawablePadding="@dimen/brsdk_space_4dp"
            />
        <View
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="0dp"
            />
    </LinearLayout>

    <TextView
        android:id="@+id/brProAdult"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/brsdk_white"
        android:includeFontPadding="false"
        android:layout_marginTop="@dimen/brsdk_space_8dp"
        android:textSize="@dimen/brsdk_font_10sp"
        android:text="@string/brsdk_login_protocol"
        android:gravity="center"
        android:button="@null"
        />
    <CheckBox
        android:id="@+id/brProtocol"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/brsdk_white"
        android:includeFontPadding="false"
        android:textSize="@dimen/brsdk_font_10sp"
        android:drawableStart="@drawable/brsdk_white_cb_theme"
        android:layout_marginBottom="-4dp"
        android:drawablePadding="@dimen/brsdk_space_4dp"
        android:padding="@dimen/brsdk_space_4dp"
        android:text="@string/brsdk_reg_protocol"
        android:gravity="center"
        android:button="@null"
        />

</LinearLayout>