-
Notifications
You must be signed in to change notification settings - Fork 333
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
1 parent
e917d0d
commit bf6ec50
Showing
1 changed file
with
27 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,27 @@ | ||
# 第三次实验 | ||
|
||
## 1、实验要求 | ||
**掌握在Android应用中使用图片等资源的方法。** | ||
|
||
## 2、实验步骤 | ||
1. 在界面上显示至少一张图片,该图片我用背景方式显示; | ||
|
||
2.提交res/drawable及图片使用的代码; | ||
|
||
3.提交res/values, res/layout等其他代码; | ||
|
||
4.将应用运行结果截图,放到实验报告中; | ||
|
||
5.点击图片(或按钮)时,打开另一个Activity。 | ||
|
||
|
||
## 3、实验结果 | ||
我的Android应用第一个activity截图。 | ||
![在Android SDK Manager中选择6.0库](https://raw.githubusercontent.com/chinesehope/android-labs-2018/master/soft1614080902345/%E5%AE%9E%E9%AA%8C3%E6%88%AA%E5%9B%BE1.jpg "配置教育网下载代理") | ||
|
||
点击按钮后跳转的activity. | ||
![在Android SDK Manager中选择6.0库](https://raw.githubusercontent.com/chinesehope/android-labs-2018/master/soft1614080902345/%E5%AE%9E%E9%AA%8C3%E6%88%AA%E5%9B%BE2.jpg"配置教育网下载代理") | ||
|
||
## 4、实验体会 | ||
1. 这个实验需要用到虚拟机显示,需要在电脑上先下载 | ||
2. 在实现跳转的时候我用了INTENT意向,采用的是内部类的方法 |