广东海洋大学学生移动编程实验报告书2
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
广东海洋大学学生实验报告书(学生用表)
GDOU-B-11-112
实验名称实验二 UI界面设计课程名称移动编程技术课程号
16552101
学院(系)信息(软件)学
院
专业软件工程班级应用1123学生姓名钟炜堂
学号201211701131实验地点钟04002实验日期
15.10.14 实验二 UI界面设计
实验目的:
1. 熟悉和掌握界面控件设计
2. 了解Android界面布局
3. 掌握控件的事件处理
实验内容:
1. 设计一个图书选购程序,在该程序中,共有5种图书,选中图书后,单击“确定”按钮,则在屏幕的下方显示所选择的图书。
一个条目的布局文件
<LinearLayout
android:layout_width ="fill_parent"
android:layout_height ="20dp"
android:layout_marginTop ="2dp"
android:orientation ="horizontal" >
<LinearLayout
android:layout_height ="20dp"
android:layout_weight ="0.7"
android:gravity ="center" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#008c08"
android:text="语文书"
android:textColor="#ffffff"
android:textSize="18dp"/>
</LinearLayout>
<LinearLayout
android:layout_height="20dp"
android:layout_weight="0.3">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#8c0084"
android:text="确定"
android:textColor="#ffffff"/> </LinearLayout>
</LinearLayout>
2.使用表格布局实现个人信息(用户名,性别,电话,邮箱)录入的界面,单击“确定”按钮,则在屏幕的下方显示录入的个人信息。
成绩指导教师陈月峰日期
注:请用A4纸书写,不够另附纸。
第 页,共 页。