Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实验三:Android资源使用编程 #3

Open
zengsn opened this issue Mar 24, 2018 · 0 comments
Open

实验三:Android资源使用编程 #3

zengsn opened this issue Mar 24, 2018 · 0 comments
Labels
Lab 实验要求

Comments

@zengsn
Copy link
Contributor

zengsn commented Mar 24, 2018

实验目的

掌握在Android应用中使用图片等资源的方法。

实验要求

  1. 在界面上显示至少一张图片(按照自己的题目添加);
  2. 提交res/drawable及图片使用的代码;
  3. 提交res/values, res/layout等其他代码;
  4. 将应用运行结果截图,放到实验报告中;
  5. 点击图片(或按钮)时,打开另一个Activity。

实验步骤(仅供参考)

  1. 统一步骤:
    https://github.com/hzuapps/android-labs-2018/blob/master/labs-steps.md
  2. Android 在TextView 中显示图片的4种方式:
    https://blog.csdn.net/u012724237/article/details/79010741

实验提示

  1. 在界面中显示图片
<TextView  
    android:id="@+id/textview_01"  
    android:layout_width="wrap_content"  
    android:layout_height="wrap_content"  
    android:drawableTop="@drawable/ic_launcher"  
    android:text="hello_world" />  
  1. 打开另一个Activity
public class MainActivity extends Activity  implements OnClickListener {    
    ......    
    
    @Override    
    public void onClick(View v) {    
        if(v.equals(startButton)) {    
            // 另一个Activity的完整名称 = edu.androidlabs.soft123456(包名).Soft123456Activity(类名)
            Intent intent = new Intent("另一个Activity的完整名称");    
            startActivity(intent);    
        }    
    }    
}  

完整代码参考:https://github.com/hzuapps/android-labs-2018/tree/master/t123456/app/src/main

  1. 根据自己的选题来设计动作。例如,聊天App中,点击头像显示个人信息;提交表单时,打击按钮显示提交结果;等等。

  2. 只提交自己创建的文件!!!

已完成的好结果参考

  1. https://github.com/hzuapps/android-labs-2018/pull/1354/files
@zengsn zengsn added the Lab 实验要求 label Mar 24, 2018
545072985 added a commit to 545072985/android-labs-2018 that referenced this issue Apr 15, 2018
zzhuangj added a commit to zzhuangj/android-labs-2018 that referenced this issue Apr 15, 2018
LingEcro added a commit to LingEcro/android-labs-2018 that referenced this issue Apr 15, 2018
heyingsen added a commit to heyingsen/android-labs-2018 that referenced this issue Apr 15, 2018
zengsn added a commit that referenced this issue Apr 16, 2018
Liaohuajjj pushed a commit to Liaohuajjj/android-labs-2018 that referenced this issue Apr 22, 2018
Liaohuajjj pushed a commit to Liaohuajjj/android-labs-2018 that referenced this issue Apr 22, 2018
Liaohuajjj pushed a commit to Liaohuajjj/android-labs-2018 that referenced this issue Apr 22, 2018
Liaohuajjj pushed a commit to Liaohuajjj/android-labs-2018 that referenced this issue Apr 22, 2018
lin1472 added a commit to lin1472/android-labs-2018 that referenced this issue Apr 22, 2018
OrangeHap added a commit to OrangeHap/android-labs-2018 that referenced this issue Apr 22, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 22, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 22, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 22, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 22, 2018
zhengzekun added a commit to zhengzekun/android-labs-2018 that referenced this issue Apr 22, 2018
zhengzekun added a commit to zhengzekun/android-labs-2018 that referenced this issue Apr 22, 2018
linliyuan pushed a commit to linliyuan/android-labs-2018 that referenced this issue Apr 22, 2018
linliyuan pushed a commit to linliyuan/android-labs-2018 that referenced this issue Apr 22, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 23, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 23, 2018
ChenchenJT added a commit to ChenchenJT/android-labs-2018 that referenced this issue Apr 23, 2018
JWL1ang added a commit to JWL1ang/android-labs-2018 that referenced this issue Apr 23, 2018
1614080902117 added a commit to 1614080902117/android-labs-2018 that referenced this issue Apr 23, 2018
1614080902117 added a commit to 1614080902117/android-labs-2018 that referenced this issue Apr 23, 2018
hejianwens added a commit to hejianwens/android-labs-2018 that referenced this issue Apr 23, 2018
hejianwens added a commit to hejianwens/android-labs-2018 that referenced this issue Apr 23, 2018
hejianwens added a commit to hejianwens/android-labs-2018 that referenced this issue Apr 23, 2018
zengsn added a commit that referenced this issue May 29, 2018
zengsn added a commit that referenced this issue May 29, 2018
zengsn added a commit that referenced this issue May 29, 2018
zengsn added a commit that referenced this issue May 29, 2018
zengsn added a commit that referenced this issue May 29, 2018
#3 第三次实验截图及报告
Zhengmianjie added a commit to Zhengmianjie/android-labs-2018 that referenced this issue May 29, 2018
zengsn added a commit that referenced this issue May 30, 2018
zengsn added a commit that referenced this issue May 30, 2018
YQ1997 added a commit to YQ1997/android-labs-2018 that referenced this issue May 30, 2018
13435107864 added a commit to 13435107864/android-labs-2018 that referenced this issue May 31, 2018
zengsn added a commit that referenced this issue May 31, 2018
Min4396 added a commit to Min4396/android-labs-2018 that referenced this issue May 31, 2018
woshilinglei added a commit to woshilinglei/android-labs-2018 that referenced this issue May 31, 2018
woshilinglei added a commit to woshilinglei/android-labs-2018 that referenced this issue May 31, 2018
AisakaTaika added a commit to AisakaTaika/android-labs-2018 that referenced this issue May 31, 2018
AisakaTaika added a commit to AisakaTaika/android-labs-2018 that referenced this issue May 31, 2018
HandsomeFace added a commit to HandsomeFace/android-labs-2018 that referenced this issue Jun 1, 2018
zengsn added a commit that referenced this issue Jun 2, 2018
zengsn added a commit that referenced this issue Jun 2, 2018
zengsn added a commit that referenced this issue Jun 2, 2018
#1 #2 实验和报告修改,#3 第三次实验,#4 第四次实验
aLesion added a commit to aLesion/android-labs-2018 that referenced this issue Jun 2, 2018
aLesion added a commit to aLesion/android-labs-2018 that referenced this issue Jun 2, 2018
HandsomeFace added a commit to HandsomeFace/android-labs-2018 that referenced this issue Jun 2, 2018
zengsn added a commit that referenced this issue Jun 2, 2018
zengsn added a commit that referenced this issue Jun 6, 2018
w123rq added a commit to w123rq/android-labs-2018 that referenced this issue Sep 22, 2018
w123rq added a commit to w123rq/android-labs-2018 that referenced this issue Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lab 实验要求
Projects
None yet
Development

No branches or pull requests

1 participant