xfgame_login.xml 7.8 KB
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/xfgame_layout_width"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@drawable/xfgame_base_background"
    android:orientation="vertical">

    <com.xuanfeng.sdk.ui.weight.SDKBackTitleBar
        android:id="@+id/xf_login_btb"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingBottom="@dimen/xfgame_space_normal" />

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

        <TextView
            android:id="@+id/xf_login_forget_account_pwd_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:gravity="center"
            android:text="@string/xfgame_forget_account_line"
            android:textColor="@color/xfgame_hy_main_color"
            android:textSize="@dimen/xfgame_font_size_11" />
    </RelativeLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:orientation="vertical"
        android:paddingLeft="40dp"
        android:paddingTop="@dimen/xfgame_space_normal"
        android:paddingRight="40dp"
        android:paddingBottom="5dp">

        <FrameLayout
            android:id="@+id/xf_login_account_fl"
            style="@style/xfgame.input.downline">

            <LinearLayout
                android:id="@+id/xf_login_account_ll"
                style="@style/xfgame.input.xiafeng">

                <EditText
                    android:id="@+id/xf_login_account_et"
                    style="@style/xfgame.input.edittext.account"
                    android:hint="@string/xfgame_login_user_hint" />

                <RelativeLayout
                    android:id="@+id/xf_login_cls"
                    android:layout_width="25dp"
                    android:layout_height="match_parent"
                    android:clickable="true"
                    android:focusable="true"
                    android:visibility="invisible">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_centerVertical="true"
                        android:background="@drawable/xfgame_cls"
                        android:clickable="false" />

                </RelativeLayout>

                <RelativeLayout
                    android:id="@+id/xf_login_show_account"
                    android:layout_width="25dp"
                    android:layout_height="match_parent"
                    android:clickable="true"
                    android:focusable="true">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_centerVertical="true"
                        android:background="@drawable/xfgame_down"
                        android:clickable="false" />

                </RelativeLayout>

            </LinearLayout>

            <ImageView
                android:id="@+id/xf_login_account_image"
                style="@style/xfgame.image.left_icon"
                android:background="@drawable/xfgame_user" />

        </FrameLayout>

        <FrameLayout
            style="@style/xfgame.input.downline"
            android:layout_marginTop="@dimen/xfgame_space_normal">

            <LinearLayout style="@style/xfgame.input.xiafeng">

                <EditText
                    android:id="@+id/xf_login_pwd_et"
                    style="@style/xfgame.input.edittext.password"
                    android:hint="@string/xfgame_password_hint"
                    android:inputType="textPassword" />

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

                    <ImageView
                        android:id="@+id/xf_login_pwd_visibility_iv"
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_centerVertical="true"
                        android:background="@drawable/xfgame_show_paw" />
                </RelativeLayout>

            </LinearLayout>

            <ImageView
                style="@style/xfgame.image.left_icon"
                android:background="@drawable/xfgame_pwd" />

        </FrameLayout>

        <Button
            android:id="@+id/xf_login_login_bt"
            style="@style/xfgame.button.hoyo_zero"
            android:layout_width="match_parent"
            android:layout_marginTop="@dimen/xfgame_space_normal"
            android:gravity="center"
            android:text="@string/xfgame_login" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="@dimen/xfgame_space_normal"
            android:layout_marginBottom="@dimen/xfgame_space_normal"
            android:orientation="horizontal">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentStart="true"
                android:layout_centerVertical="true"
                android:text="@string/xfgame_other_login_way"
                android:textColor="@color/xfgame_hy_main_color"
                android:textSize="@dimen/xfgame_font_size_12" />

            <LinearLayout
                android:id="@+id/xf_login_login_by_msg_ll"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:layout_centerVertical="true"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="16dp"
                    android:layout_height="16dp"
                    android:layout_gravity="center"
                    android:layout_marginBottom="@dimen/xfgame_space_small"
                    android:background="@drawable/xfgame_phone_register" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/xfgame_message_login"
                    android:textColor="@color/xfgame_333333"
                    android:textSize="@dimen/xfgame_font_size_10" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/xf_login_fast_register_ll"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_centerVertical="true"
                android:orientation="vertical">

                <ImageView
                    android:layout_width="16dp"
                    android:layout_height="16dp"
                    android:layout_gravity="center"
                    android:layout_marginBottom="@dimen/xfgame_space_small"
                    android:background="@drawable/xfgame_fast_register" />

                <TextView
                    android:id="@+id/xf_login_fast_register_tv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/xfgame_fast_register"
                    android:textColor="@color/xfgame_333333"
                    android:textSize="@dimen/xfgame_font_size_10" />
            </LinearLayout>

        </RelativeLayout>


    </LinearLayout>

</LinearLayout>