一个短信验证的布局

来源:互联网 发布:软件研发成本 会计准则 编辑:程序博客网 时间:2024/06/06 03:37
 <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>
0 0
原创粉丝点击