5.31博客
上午数据库下午计网
学习内容:安卓
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#66BB"
tools:context=".RegisterActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/register_background_01"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:gravity="bottom">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<TextView
android:id="@+id/textview_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="注册"
android:textSize="25sp"
android:textStyle="bold"
android:background="@drawable/shape_rectangle_textview"/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
</TextView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_marginBottom="7dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="账号:"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="15sp"
android:gravity="center"
android:background="@drawable/shape_oval_textview"/>
<EditText
android:id="@+id/editText_username"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:maxLength="9"
android:hint="请输入用户名"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_marginBottom="7dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="密码:"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="15sp"
android:gravity="center"
android:background="@drawable/shape_oval_textview"/>
<EditText
android:id="@+id/editText_password"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:maxLength="9"
android:inputType="numberPassword"
android:hint="请输入密码"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_marginBottom="7dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="确认:"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="15sp"
android:gravity="center"
android:background="@drawable/shape_oval_textview"/>
<EditText
android:id="@+id/editText_password_define"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:maxLength="9"
android:inputType="numberPassword"
android:hint="请输入确认密码"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<CheckBox
android:id="@+id/checkbox_show_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false"
android:text="显示密码"
android:textColor="#FFC0CB"
android:textStyle="bold"
android:background="@drawable/shape_rectangle_textview"/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<CheckBox
android:id="@+id/checkbox_show_password_affirm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false"
android:text="显示确认密码"
android:textColor="#FFC0CB"
android:textStyle="bold"
android:background="@drawable/shape_rectangle_textview"/>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/button_return_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="返回" />
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<Button
android:id="@+id/button_register_yes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="确定注册"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】