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 1, 2019 · 0 comments
Open

实验三:Android资源使用编程(自学) #3

zengsn opened this issue Mar 1, 2019 · 0 comments
Labels
Lab 实验要求

Comments

@zengsn
Copy link
Contributor

zengsn commented Mar 1, 2019

实验目标

  1. 了解Android应用中各种资源的概念与使用方法;
  2. 掌握在Android应用中使用图片等资源的方法。

实验要求

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

实验步骤(仅供参考,不是直接抄到实验报告)

  1. 提交代码的步骤与说明:
    https://github.com/hzuapps/android-labs-2019/blob/master/GitHub-lab.md
  2. Android 在TextView 中显示图片的4种方式:
    https://blog.csdn.net/u012724237/article/details/79010741

**注意:实验报告中原封不动抄上面2点的本次实验不及格。 **

实验提示

  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-2019/tree/master/examples

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

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

已完成的好结果参考

  1. https://github.com/hzuapps/android-labs-2018/pull/1354/files
@zengsn zengsn added the Lab 实验要求 label Mar 1, 2019
VOEZ21 added a commit to VOEZ21/android-labs-2019 that referenced this issue Mar 15, 2019
@zengsn zengsn changed the title 实验三:Android资源使用编程 实验三:Android资源使用编程(自学) Mar 16, 2019
zengsn added a commit that referenced this issue Mar 17, 2019
wzq-55552 pushed a commit to wzq-55552/android-labs-2019 that referenced this issue Mar 17, 2019
zengsn added a commit that referenced this issue Mar 18, 2019
zengsn added a commit that referenced this issue Mar 18, 2019
zengsn added a commit that referenced this issue Mar 18, 2019
zhengrunkai added a commit to zhengrunkai/android-labs-2019 that referenced this issue Mar 18, 2019
zhengrunkai added a commit to zhengrunkai/android-labs-2019 that referenced this issue Mar 18, 2019
zhengrunkai added a commit to zhengrunkai/android-labs-2019 that referenced this issue Mar 18, 2019
zhengrunkai added a commit to zhengrunkai/android-labs-2019 that referenced this issue Mar 18, 2019
Bswordload added a commit to Bswordload/android-labs-2019 that referenced this issue Mar 18, 2019
zhengrunkai added a commit to zhengrunkai/android-labs-2019 that referenced this issue Mar 18, 2019
Walk-With-Wind added a commit to Walk-With-Wind/android-labs-2019 that referenced this issue Mar 18, 2019
Walk-With-Wind added a commit to Walk-With-Wind/android-labs-2019 that referenced this issue Mar 18, 2019
Walk-With-Wind added a commit to Walk-With-Wind/android-labs-2019 that referenced this issue Mar 18, 2019
zengsn added a commit that referenced this issue Mar 19, 2019
zengsn added a commit that referenced this issue Mar 19, 2019
zengsn added a commit that referenced this issue Mar 19, 2019
zengsn added a commit that referenced this issue Mar 19, 2019
Bswordload added a commit to Bswordload/android-labs-2019 that referenced this issue Mar 19, 2019
Bswordload added a commit to Bswordload/android-labs-2019 that referenced this issue Mar 19, 2019
HuangGuiguang added a commit to HuangGuiguang/android-labs-2019 that referenced this issue Mar 19, 2019
wechat210 added a commit to wechat210/android-labs-2019 that referenced this issue Mar 19, 2019
ridworld added a commit to ridworld/android-labs-2019 that referenced this issue Mar 19, 2019
Ci-ing added a commit to Ci-ing/android-labs-2019 that referenced this issue Mar 20, 2019
zhazhahui9527 added a commit to zhazhahui9527/android-labs-2019 that referenced this issue Mar 20, 2019
wanshanghong added a commit to wanshanghong/android-labs-2019 that referenced this issue Mar 20, 2019
xiaoandev added a commit to xiaoandev/android-labs-2019 that referenced this issue Mar 21, 2019
Peiweilu added a commit to Peiweilu/android-labs-2019 that referenced this issue Mar 29, 2019
zengsn added a commit that referenced this issue Mar 30, 2019
zengsn added a commit that referenced this issue Mar 30, 2019
zengsn added a commit that referenced this issue Mar 30, 2019
Android-lgw added a commit to Android-lgw/android-labs-2019 that referenced this issue Apr 1, 2019
ruoxilin added a commit to ruoxilin/android-labs-2019 that referenced this issue Apr 3, 2019
zrjdev added a commit to zrjdev/android-labs-2019 that referenced this issue Apr 6, 2019
vcicis added a commit to vcicis/android-labs-2019 that referenced this issue Apr 10, 2019
vcicis added a commit to vcicis/android-labs-2019 that referenced this issue Apr 10, 2019
vcicis pushed a commit to vcicis/android-labs-2019 that referenced this issue Apr 10, 2019
vcicis pushed a commit to vcicis/android-labs-2019 that referenced this issue Apr 10, 2019
zengsn added a commit that referenced this issue Apr 11, 2019
yinghaocai added a commit to yinghaocai/android-labs-2019 that referenced this issue Apr 11, 2019
yinghaocai added a commit to yinghaocai/android-labs-2019 that referenced this issue Apr 12, 2019
zengsn added a commit that referenced this issue Apr 12, 2019
zengsn added a commit that referenced this issue Apr 12, 2019
15018074939 pushed a commit to 15018074939/android-labs-2019 that referenced this issue Apr 12, 2019
zengsn added a commit that referenced this issue Apr 13, 2019
zengsn added a commit that referenced this issue Apr 13, 2019
ruoxilin added a commit to ruoxilin/android-labs-2019 that referenced this issue Apr 17, 2019
zengsn added a commit that referenced this issue Apr 21, 2019
ruoxilin added a commit to ruoxilin/android-labs-2019 that referenced this issue Apr 27, 2019
ruoxilin added a commit to ruoxilin/android-labs-2019 that referenced this issue Apr 27, 2019
ashuo2010 added a commit to ashuo2010/android-labs-2019 that referenced this issue May 5, 2019
zengsn added a commit that referenced this issue May 6, 2019
AngleBeatQAQ added a commit to AngleBeatQAQ/android-labs-2019 that referenced this issue May 8, 2019
zengsn added a commit that referenced this issue May 14, 2019
zengsn added a commit that referenced this issue May 15, 2019
zengsn added a commit that referenced this issue May 15, 2019
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