一个短信验证的布局

 <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="130dp"
        android:layout_marginLeft="15dp"
        android:layout_marginRight="15dp"
        android:layout_marginStart="15dp"
        android:layout_marginEnd="15dp"
        android:orientation="vertical"
        >


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/round_corner_white"
            android:orientation="vertical"
            >


            <com.smu.smulibary.ui.customui.SmuEditText
                android:id="@+id/forget_password_phone"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:padding="15dp"
                android:maxLines="1"
                android:singleLine="true"
                android:maxLength="11"
                android:inputType="phone"
                android:hint="@string/enter_phone"
                />


            <View
                android:layout_width="match_parent"
                android:layout_height="1px"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:background="@color/themeDividerColor" />


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


                <TextView
                    android:id="@+id/forget_password_phone_code_get"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/string_get_phone_code"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:layout_marginRight="10dp"
                    android:paddingLeft="5dp"
                    android:paddingStart="5dp"
                    android:paddingRight="5dp"
                    android:paddingEnd="5dp"
                    android:paddingTop="5dp"
                    android:paddingBottom="5dp"
                    android:background="@drawable/phone_password_text_selector"
                    android:textColor="@color/themeWhite"
                    />


                <com.smu.smulibary.ui.customui.SmuEditText
                    android:id="@+id/forget_password_phone_code"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_toLeftOf="@id/forget_password_phone_code_get"
                    android:padding="15dp"
                    android:hint="@string/string_regist_phone_code"
                    android:singleLine="true"
                    android:maxLines="1"
                    android:maxLength="6"
                    android:inputType="number"
                    />


            </RelativeLayout>


            <View
                android:layout_width="match_parent"
                android:layout_height="1px"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:background="@color/themeDividerColor" />


            <com.smu.smulibary.ui.customui.SmuEditText
                android:id="@+id/forget_password"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:padding="15dp"
                android:maxLines="1"
                android:singleLine="true"
                android:hint="@string/string_regist_password"
                android:inputType="textPassword"
                />


        </LinearLayout>


        <Button
            android:id="@+id/forget_password_commit"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="30dp"
            android:text="@string/string_btn_commit"
            android:textColor="@color/themeWhite"
            android:background="@drawable/login_btn_selector"
            />
    </LinearLayout>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值