6.7博客
计网也只有两节课了,快考试了,唉
学习内容:安卓
<?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:gravity="bottom" android:layout_centerInParent="true">
<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/ed_studentid"
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/ed_name"
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/ed_phonenumber"
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/ed_class"
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>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btn_sure"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
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】