结对作业(地铁项目)13

前端相关代码
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:orientation="horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/shape_oval_textview"
android:gravity="center"
android:text="线路名称:"
android:textColor="#000000"
android:textSize="15sp"
android:textStyle="bold" />


<Spinner
android:id="@+id/spiLine"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/shape_round_rectangle"
android:entries="@array/spinner_items"
android:inputType="text"
android:maxLength="9"
android:textColorHint="#999999" />

<Button
android:id="@+id/btnLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="线路查询" />

</LinearLayout>

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

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:orientation="horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/shape_oval_textview"
android:gravity="center"
android:text="站点名称:"
android:textColor="#000000"
android:textSize="15sp"
android:textStyle="bold" />


<EditText
android:id="@+id/ediStaion"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/shape_round_rectangle"
android:hint="输入站点名称"
android:inputType="text"
android:maxLength="9"
android:textColorHint="#999999"
tools:ignore="DuplicateIds" />

<Button
android:id="@+id/btnStation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="站点查询" />

</LinearLayout>

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

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:orientation="horizontal">

<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/shape_oval_textview"
android:gravity="center"
android:text="起点:"
android:textColor="#000000"
android:textSize="15sp"
android:textStyle="bold" />


<EditText
android:id="@+id/ediStart"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/shape_round_rectangle"
android:hint="输入起点名称"
android:inputType="text"
android:maxLength="9"
android:textColorHint="#999999"
tools:ignore="DuplicateIds" />

<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/shape_oval_textview"
android:gravity="center"
android:text="终点:"
android:textColor="#000000"
android:textSize="15sp"
android:textStyle="bold" />


<EditText
android:id="@+id/ediEnd"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/shape_round_rectangle"
android:hint="输入终点名称"
android:inputType="text"
android:maxLength="9"
android:textColorHint="#999999"
tools:ignore="DuplicateIds" />
</LinearLayout>

<Button
android:id="@+id/btnSe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="起点-终点查询" />

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


</LinearLayout>

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