第一阶段团队冲刺第三天
设计了注册界面,对注册界面进行一些美化,增加用户体验。
对用用户界面的设计样式如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
tools:context=".zhuce">
<androidx.appcompat.widget.Toolbar
android:id="@+id/zctoolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:navigationIcon="@mipmap/back1"
app:titleMarginStart="110dp"
app:title="信息注册"
>
</androidx.appcompat.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"></LinearLayout>
<ImageView
android:id="@+id/ZC1"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:src="@drawable/zctx"
android:layout_margin="20dp"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:layout_weight="1">
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="点击更换头像"
android:textColor="@color/black"
></TextView>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="10dp">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<EditText
android:id="@+id/ZCNi"
android:layout_margin="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/dlzcdeyj"
android:gravity="center"
android:textColorHint="@color/black"
android:hint="输入你的昵称"
android:padding="15dp"
android:textSize="16sp"
android:textColor="@color/black"
/>
<EditText
android:layout_margin="5dp"
android:id="@+id/ZCID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/dlzcdeyj"
android:gravity="center"
android:textColorHint="@color/black"
android:hint="注册账号/6位数"
android:textColor="@color/black"
android:inputType="number"
android:padding="15dp"
android:maxLength="6"
android:textSize="16sp"
/>
<EditText
android:layout_margin="5dp"
android:id="@+id/ZCP1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/dlzcdeyj"
android:gravity="center"
android:textColorHint="@color/black"
android:hint="输入密码"
android:maxLength="16"
android:textColor="@color/black"
android:inputType="textPassword"
android:padding="15dp"
android:textSize="16sp"
/>
<EditText
android:layout_margin="5dp"
android:id="@+id/ZCp2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/dlzcdeyj"
android:gravity="center"
android:textColorHint="@color/black"
android:hint="确认密码"
android:maxLength="16"
android:textColor="@color/black"
android:inputType="textPassword"
android:padding="15dp"
android:textSize="16sp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_weight="2"
android:gravity="center"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
<TextView
android:text="性别:"
android:layout_weight="1"
android:textSize="15dip"
android:textColor="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</TextView>
<LinearLayout
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RadioGroup
android:id="@+id/zhucesexcheck"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center"
android:orientation="horizontal">
<RadioButton
android:layout_weight="1"
android:id="@+id/zcsexman"
android:text="男生"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</RadioButton>
<RadioButton
android:layout_weight="1"
android:id="@+id/zcsexwoman"
android:text="女生"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</RadioButton>
</RadioGroup>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_weight="2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<TextView
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="个性签名:"
android:textColor="@color/black">
</TextView>
</LinearLayout>
<LinearLayout
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/ZCQM"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:background="@color/white"
android:textColorHint="@color/black"
android:textColor="@color/black"
android:hint="输入个性介绍"
android:padding="15dp"
android:textSize="16sp"
/>
</LinearLayout>
</LinearLayout>
<Button
android:layout_margin="5dp"
android:id="@+id/mainzcbt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/zcdebtn"
android:onClick="zhuce"
android:text="注册" />
</LinearLayout>
</LinearLayout>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具