forked from hzuapps/android-labs-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 实验二 | ||
## 一、实验目标 | ||
1. 创建2-3个与自己选题有关的Activity | ||
2. 利用Intent实现Activity间的跳转 | ||
|
||
## 二、实验内容 | ||
1. 根据功能创建相应的Activity; | ||
2. 编写Activity对应的布局文件; | ||
3. 实现各个Activity之间的跳转; | ||
|
||
## 三、实验步骤 | ||
1. 创建 MainActivity(主界面)、GameSceneActivity(游戏界面)、FailGameSceneActivity(游戏失败界面); | ||
2. 将创建的 Activity 注册到 AndroidManifest.xml 中; | ||
3. 在布局文件中创建 Button 组件; | ||
4. 为 Button 添加点击事件处理; | ||
5. 通过 MainActivity(Intent) 实现界面跳转 | ||
|
||
## 四、实验结果 | ||
![实验结果](https://github.com/1nnocent1/android-labs-2020/blob/master/students/sec1814080911125/lab2.png) | ||
|
||
## 五、实验心得 | ||
第二次实验是根据自己所选的题目创建几个功能的Activity,然后在主Activity中使用Intent实现各个Activity的跳转。 |