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>
posted @   张佳木  阅读(6)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示