第一次结对作业(2023.3.21)
今日完成安卓app端页面,以及跳转页面的设计,修改布局及其相关内容。
以下为相关截图
以下为相关代码,布局页面以及相关设置都放入一个代码框当中

<?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="@drawable/dp1"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="70dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="地铁查询" android:textSize="40dp" android:textColor="@color/black" android:layout_gravity="center" /> <Button android:id="@+id/btn_screach1" android:layout_width="300dp" android:layout_gravity="center" android:layout_height="50dp" android:layout_marginTop="70dp" android:padding="10dp" android:background="@drawable/but_on" android:text="线 路 查 询"/> <Button android:id="@+id/btn_screach2" android:layout_width="300dp" android:layout_gravity="center" android:layout_height="50dp" android:layout_marginTop="70dp" android:padding="10dp" android:background="@drawable/but_on" android:text="站 点 查 询"/> <Button android:id="@+id/btn_screach3" android:layout_width="300dp" android:layout_gravity="center" android:layout_height="50dp" android:layout_marginTop="70dp" android:padding="10dp" android:background="@drawable/but_on" android:text="始 末 查 询"/> </LinearLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:layout_marginBottom="50dp" android:text="欢迎使用地铁查询app" android:textColor="@color/white" android:textSize="30dp"/> </RelativeLayout> <?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="@drawable/dp2"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="70dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="线路查询" android:textSize="40dp" android:textColor="@color/black" android:layout_gravity="center" /> <EditText android:layout_marginTop="40dp" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="线路查询" /> <Button android:id="@+id/btn_choice1" android:layout_width="300dp" android:layout_gravity="center" android:layout_height="50dp" android:layout_marginTop="20dp" android:padding="10dp" android:background="@drawable/but_on" android:text="查 询"/> </LinearLayout> </RelativeLayout> <?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="@drawable/dp3"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="70dp"> <TextView android:layout_marginTop="55dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="站点查询" android:textSize="40dp" android:textColor="@color/black" android:layout_gravity="center" /> <EditText android:layout_marginTop="40dp" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="线路查询" /> <Button android:id="@+id/btn_choice2" android:layout_width="300dp" android:layout_gravity="center" android:layout_height="50dp" android:layout_marginTop="20dp" android:padding="10dp" android:background="@drawable/but_on" android:text="查 询"/> </LinearLayout> </RelativeLayout> <?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="@drawable/dp4"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_marginTop="70dp"> <TextView android:layout_marginTop="30dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="始末查询" android:textSize="40dp" android:textColor="@color/black" android:layout_gravity="center" /> <EditText android:layout_marginTop="30dp" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="起始站" /> <EditText android:layout_marginTop="30dp" android:layout_width="match_parent" android:layout_height="match_parent" android:hint="终点站" /> <Button android:id="@+id/btn_choice3" android:layout_width="300dp" android:layout_gravity="center" android:layout_height="50dp" android:layout_marginTop="20dp" android:padding="10dp" android:background="@drawable/but_on" android:text="查 询"/> </LinearLayout> </RelativeLayout> <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#6666ff"/> <corners android:radius="105dip" /> <stroke android:width="3dp" android:color="@color/white" /> </shape>
工作照:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南