fragment_loginandregister_register.xml 4.17 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#00ffffff"
    android:orientation="vertical"
    android:paddingLeft="30dp"
    android:paddingRight="30dp">

    <LinearLayout
        android:id="@+id/et_phonenumber_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:background="@drawable/input_bg"
        android:layout_marginTop="20dp"
        android:paddingRight="10dp"
        android:orientation="horizontal">

        <EditText
            android:id="@+id/et_phonenumber"
            style="@style/login_register_edit_style"
            android:hint="手机号"
            android:maxLength="11"
            android:inputType="phone" />
        <ImageButton
            android:id="@+id/phone_delete_btn"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:src="@mipmap/delete_btn"
            android:visibility="invisible"
            android:background="@null"/>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/rl_authcode"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/et_phonenumber_layout"
        android:layout_marginTop="30dp"
        android:paddingRight="7dp"
        android:background="@drawable/input_bg"
        android:orientation="horizontal">

        <EditText
            android:id="@+id/et_authcode"
            style="@style/login_register_edit_rect_style"
            android:layout_marginRight="-4px"
            android:layout_weight="1"
            android:hint="验证码"
            android:maxLength="6"
            android:numeric="integer" />

        <ImageButton
            android:id="@+id/code_delete_btn"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:src="@mipmap/delete_btn"
            android:visibility="invisible"
            android:background="@null"/>
        <Button
            android:id="@+id/btn_authcode"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            style="?android:attr/borderlessButtonStyle"
            android:layout_weight="2"
            android:text="获取验证码"
            android:maxLines="1"
            android:background="@drawable/code_bg"
            android:textSize="18sp"
            android:padding="8dp"
            android:textColor="@color/login_text_blue" />
    </LinearLayout>

    <TextView
        android:id="@+id/authcode_error_hint"
        style="@style/registererrhint_style"
        android:layout_below="@id/rl_authcode" />

    <LinearLayout
        android:id="@+id/pwd_rl"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/rl_authcode"
        android:background="@drawable/input_bg"
        android:gravity="center_vertical"
        android:layout_marginTop="30dp">

        <EditText
            android:id="@+id/et_password"
            style="@style/login_register_edit_style"
            android:hint="密码为英文和数字组成,最少8位"
            android:inputType="textPassword" />

        <ImageView
            android:id="@+id/iv_pwd_change"
            android:layout_width="40dp"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="15dp"
            android:padding="10dp"
            android:src="@mipmap/pwd_hide" />
    </LinearLayout>

    <TextView
        android:id="@+id/password_error_hint"
        style="@style/registererrhint_style"
        android:layout_below="@id/pwd_rl" />

    <Button
        android:id="@+id/btn_register"
        style="@style/button_login_register_style"
        android:layout_below="@id/pwd_rl"
        android:layout_marginTop="30dp"
        android:text="立即注册" />

</RelativeLayout>