PSP0(Personal Software Process Stages ) |
所需时间(TIME) |
Planning(计划) |
把安卓前端写了写,主要是队友写的 |
estimate[估计这个任务需要多少时间 ] |
2h |
Development (开发 ) |
|
· Design [具体设计 ] |
1 |
· Coding [具体编码 ] |
2 |
· Test [测试(自我测试,修改代码,提交修改)] |
2 |
Reporting(报告 ) |
|
· Postmortem & Process Improvement Plan [事后总结, 并提出过程改进计划 ] |
1h |
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#F5F5F5">
<TextView
android:id="@+id/TitleText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:text="地铁信息查询"
android:gravity="center"
android:textStyle="italic"
android:textColor="#808080"
android:textSize="30sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btn1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="10dp"
android:onClick="SearchOptimalRoute"
android:padding="6dp"
android:text="最优路线查询"
android:textColor="@color/white"
android:textSize="24sp"
android:background="@drawable/translucent_button" />
<Button
android:id="@+id/btn2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_margin="10dp"
android:onClick="SearchLine"
android:padding="6dp"
android:text="地铁线路查询"
android:textColor="@color/white"
android:textSize="24sp"
android:background="@drawable/translucent_button" />
</LinearLayout>
<LinearLayout
android:id="@+id/LL1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="visible">
<AutoCompleteTextView
android:id="@+id/SystemName1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="城市名称"
android:padding="15dp"
android:textSize="24sp"
android:background="@drawable/translucent_edit"
android:completionThreshold="1" />
<AutoCompleteTextView
android:id="@+id/DepartureStation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="出发站点"
android:padding="15dp"
android:textSize="24sp"
android:background="@drawable/translucent_edit"
android:completionThreshold="1" />
<AutoCompleteTextView
android:id="@+id/DestinationStation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="目标站点"
android:padding="15dp"
android:textSize="24sp"
android:background="@drawable/translucent_edit"
android:completionThreshold="1" />
<Button
android:id="@+id/query1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:layout_gravity="end"
android:onClick="query1"
android:padding="6dp"
android:text="查询"
android:textColor="@color/cardview_light_background"
android:textSize="24sp"
android:background="@drawable/translucent_button" />
</LinearLayout>
<LinearLayout
android:id="@+id/LL2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone">
<AutoCompleteTextView
android:id="@+id/SystemName2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="城市名称"
android:padding="15dp"
android:textSize="24sp"
android:background="@drawable/translucent_edit"
android:completionThreshold="1" />
<AutoCompleteTextView
android:id="@+id/LineName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="线路名称"
android:padding="15dp"
android:textSize="24sp"
android:background="@drawable/translucent_edit"
android:completionThreshold="1" />
<Button
android:id="@+id/query2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:layout_gravity="end"
android:onClick="query2"
android:padding="6dp"
android:text="查询"
android:textColor="@color/cardview_light_background"
android:textSize="24sp"
android:background="@drawable/translucent_button" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/resultTextView"
android:layout_width="match_parent"
android:layout_height="115dp"
android:layout_margin="20dp"
android:gravity="start"
android:padding="10dp"
android:textColor="#000000"
android:textSize="20sp" />
</LinearLayout>
</ScrollView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2023-04-16 2023.4.16