团队冲刺5

1.今天设计“我的”界面和注册

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".me_me"
android:id="@+id/message11"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="350dp"
android:orientation="horizontal"
android:background="@drawable/me_pic"

>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
>
</LinearLayout>
<ImageView
android:id="@+id/MYmytouxiang"
android:layout_width="80dp"
android:layout_height="80dp"
android:src="@mipmap/me_touxiang_1"

></ImageView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="10dp">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
<TextView
android:id="@+id/MYmynicheng"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="个人信息"
android:textSize="25dip"
android:textColor="@color/black"

>
</TextView>

</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="10dp">
</LinearLayout>

</LinearLayout>
</LinearLayout>



<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp">
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
android:id="@+id/login_button1"
android:layout_width="100dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:text="登 陆"
android:background="@drawable/textview_round_border"
/>
<Button
android:id="@+id/main_register_button1"
android:layout_width="100dp"
android:layout_height="40dp"
android:layout_marginLeft="20dp"
android:layout_gravity="center"
android:text="注 册"
android:background="@drawable/textview_round_border"
/>
</LinearLayout>




<!-- TODO: Update blank fragment layout -->


</LinearLayout>


 

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:id="@+id/activity_register"
android:background="@drawable/main_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingRight="30dp"
android:paddingTop="170dp"
tools:context=".RegisterActivity">


<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text=" 用 户 号:"
android:textSize="15dp"/>
<EditText
android:id="@+id/register_name"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="2"
android:hint="请输入用户名"
android:textSize="14dp"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:background="@drawable/textview_round_border"
android:layout_marginRight="10dp"
/>
</LinearLayout>

<LinearLayout
android:orientation="horizontal"
android:paddingTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>

<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text=" 邮 箱:"
android:textSize="15dp"/>

<EditText
android:id="@+id/register_mail"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="2"
android:hint="请输入e-mail地址"
android:textSize="14dp"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:background="@drawable/textview_round_border"
android:layout_marginRight="10dp"
/>
</LinearLayout>

<LinearLayout
android:orientation="horizontal"
android:paddingTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text=" 密 码:"
android:textSize="15dp"/>

<EditText
android:id="@+id/register_password"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="2"
android:hint="请输入密码"
android:textSize="14dp"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:background="@drawable/textview_round_border"
android:layout_marginRight="10dp"
/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:paddingTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text=" 确认密码:"
android:textSize="15dp"/>

<EditText
android:id="@+id/register_password_agin"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="2"
android:hint="请输入密码"
android:textSize="14dp"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:background="@drawable/textview_round_border"
android:layout_marginRight="10dp"
/>
</LinearLayout>
<Button
android:id="@+id/btn_register_button"
android:layout_width="100dp"
android:layout_height="40dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="20dp"
android:layout_gravity="center"
android:text="注 册"
android:background="@drawable/textview_round_border"
/>

</LinearLayout>

 

 

 

posted @   chenghaixinag  阅读(21)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
· 【译】Visual Studio 中新的强大生产力特性
· 2025年我用 Compose 写了一个 Todo App
点击右上角即可分享
微信分享提示