第一次个人作业(安卓学习记录系统)07

页面设计

登陆页面

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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:background="#66BB"
tools:context=".LoginActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:minWidth="300dp"
android:layout_centerVertical="true"
android:orientation="vertical"
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_login"
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="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
</TextView>
<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:layout_margin="15dp"
android:orientation="horizontal">
<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:inputType="text"
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:layout_margin="15dp"
android:orientation="horizontal">
<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:inputType="numberPassword"
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">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"/>
<CheckBox
android:id="@+id/checkbox_remember_id"
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_remember_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"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/button_register_no"
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_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="登录" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
首页
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<Button
android:id="@+id/btnGoal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="设置本周计划" />

<Button
android:id="@+id/btnRecord"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="今日学习记录" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="本周目标:" />

<TextView
android:id="@+id/tvGoal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="完成情况:" />

<TextView
android:id="@+id/tvRecord"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>

<Button
android:id="@+id/btnAnalyse"
android:layout_width="413dp"
android:layout_height="59dp"
android:text="能力达标分析:" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="能力达标分析:" />
<TextView
android:id="@+id/tvAnalyse"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>

</LinearLayout>
各个功能子页
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="300dp"
android:orientation="vertical">

<EditText
android:id="@+id/edAnalyse"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:hint="输入你对这周的的分析"
android:textColorHint="#999999"
android:background="@drawable/shape_round_rectangle"/>
<Button
android:id="@+id/btn_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="保存"/>

</LinearLayout>
<!-- activity_learning_goals.xml -->

<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">

<!-- Header Section -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="每周学习目标"
android:textSize="20sp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" android:layout_marginTop="16dp" android:layout_marginStart="16dp"
android:layout_marginEnd="16dp" android:layout_marginBottom="16dp"
android:layout_gravity="center"/>

<!-- Input Fields -->

<EditText
android:id="@+id/ed_goal"
android:layout_width="match_parent"
android:layout_height="73dp"
android:hint="Goal Description"
android:layout_margin="16dp"/>

<DatePicker
android:id="@+id/dp_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"/>
<Button
android:id="@+id/btn_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="确定"
android:layout_margin="16dp"/>


</LinearLayout>
<?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>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".GoalActivity">

</androidx.constraintlayout.widget.ConstraintLayout>
<!-- activity_daily_learning_record.xml -->

<RelativeLayout 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">

<!-- Header Section -->
<TextView
android:id="@+id/textViewTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_margin="16dp"
android:text="每日学习记录"
android:textSize="20sp" />

<!-- Input Fields -->
<TextView
android:id="@+id/textViewStartTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textViewTitle"
android:layout_margin="16dp"
android:text="开始时间" />

<TimePicker
android:id="@+id/tp_time_start"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/textViewStartTime"
android:layout_marginTop="-15dp"
android:tag="start"
android:timePickerMode="spinner" />

<TextView
android:id="@+id/textViewEndTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tp_time_start"
android:layout_margin="16dp"
android:text="结束时间" />

<TimePicker
android:id="@+id/tp_time_end"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/textViewEndTime"
android:tag="end"
android:timePickerMode="spinner" />

<EditText
android:id="@+id/editTextLearningRecord"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tp_time_end"
android:layout_margin="16dp"
android:hint="每日学习记录" />

<!-- Functionality Options -->

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@id/editTextLearningRecord">

<Button
android:id="@+id/buttonSaveRecord"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/editTextLearningRecord"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
android:text="保存学习记录" />

<!-- <Button-->
<!-- android:id="@+id/butSure"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@id/buttonSaveRecord"-->
<!-- android:layout_marginStart="16dp"-->
<!-- android:layout_marginTop="16dp"-->
<!-- android:layout_marginEnd="16dp"-->
<!-- android:layout_marginBottom="16dp"-->
<!-- android:text="" />-->
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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:background="#66BB"
tools:context=".RegisterActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
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>

posted @   平安喜乐×  阅读(4)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探
· 为什么 退出登录 或 修改密码 无法使 token 失效
点击右上角即可分享
微信分享提示