结对作业(地铁项目)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 @ 2024-06-16 11:53  平安喜乐×  阅读(6)  评论(0)    收藏  举报