Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

实验二:Android组件编程 #2

Open
jiaohui opened this issue Feb 13, 2020 · 0 comments
Open

实验二:Android组件编程 #2

jiaohui opened this issue Feb 13, 2020 · 0 comments
Labels
Lab 实验要求

Comments

@jiaohui
Copy link
Collaborator

jiaohui commented Feb 13, 2020

实验要求

  1. 在Issues中创建自己的选题:https://github.com/hzuapps/android-labs-2020/issues
  2. 根据自选题目,编写一个或多个Activity(主窗口类带上学号前缀,放到自己的Java包下);
  3. 将标题设置为自己的学号+对应的功能或题目;
  4. 根据自己选择的题目实现Activity中导航、调用等功能(选做)。

参考选题(不要做登录和注册功能)

https://github.com/hzuapps/android-labs-2019/issues

实验步骤

https://github.com/hzuapps/android-labs-2020/blob/master/GitHub-lab.md

实验要点

  1. 根据自己的选题功能,创建 2-3 个 Activity(界面可以尝试设计);
  • Net123456Activity.java (首页、LAUNCHER、主活动)
  • 功能1Activity.java
  • 功能2Activity.java
  • AndroidManifest.xml
  1. 在 Activity 上添加按钮、链接或导航栏,实现各个 Activity 的跳转。
  • 在 Net123456Activity.java 添加按钮点击事件处理,实现跳转

主要问题(新)

  1. Java类名要首字母大写,且驼峰式命名;
  2. Java包要全部小写开头。
  3. 删除多余文件的命令,已经更新到上面的步骤中。

实验提示

  1. 根据MVC、MVP设计模式或其他Android App设计模式设计Java类;
  2. 先设计表示业务数据的Java类,如表示订单、图书、商品、车辆、音乐、笔记等的类;
  3. 再考虑设计一些业务服务类,如网络连接等类;
  4. 上传代码时,代码放到自己的学号里面,同时保留Studio的目录结果,如:
app
- src
-- main
--- AndroidManifest.xml (第1个文件) (实验二)
--- java (实验二)
---- edu / hzuapps / androidlabs / Soft学号 / Soft学号Activity.java (第2个文件)
--- res  (留到实验三再提交)
---- layout
----- soft_学号_activity.xml (第3个文件)
---- values
----- strings.xml (第4个文件)

参考资料

  1. 视频链接:https://pan.baidu.com/s/1se-TkPyJFLFOs-E_QH_3YA 密码:o60e
  2. 讲义:http://zeng.shaoning.net/android/ppt/02.Components.pdf
  3. Java基础讲义 http://zeng.shaoning.net/android/ppt/01.Java.on.Android.Studio.pdf
  4. 在Android Studio中调试代码 http://blog.tianya.cn/post-4878171-107148685-1.shtml
  5. 创建第一个Android项目:http://hukai.me/android-training-course-in-chinese/basics/firstapp/creating-project.html
  6. Activity生命周期:http://hukai.me/android-training-course-in-chinese/basics/activity-lifecycle/index.html

最后一步

Pull request发送之后,一定要自己查看自己修改过的文件,看看有没有改错文件(Files changed)。

image

正确作业参考

  1. https://github.com/hzuapps/android-labs-2020/pull/400/files
@jiaohui jiaohui added the Lab 实验要求 label Feb 13, 2020
zengsn added a commit that referenced this issue Sep 28, 2020
itgopan added a commit to itgopan/android-labs-2020 that referenced this issue Sep 28, 2020
itgopan added a commit to itgopan/android-labs-2020 that referenced this issue Sep 28, 2020
jaydjxing added a commit to jaydjxing/android-labs-2020 that referenced this issue Oct 5, 2020
zengsn added a commit that referenced this issue Oct 6, 2020
Playerlhh added a commit to Playerlhh/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
zengsn added a commit that referenced this issue Oct 6, 2020
Chenweikang2 added a commit to Chenweikang2/android-labs-2020 that referenced this issue Oct 6, 2020
Chenweikang2 added a commit to Chenweikang2/android-labs-2020 that referenced this issue Oct 6, 2020
Xiaohuang-12 added a commit to Xiaohuang-12/android-labs-2020 that referenced this issue Oct 6, 2020
tillsunrise pushed a commit to tillsunrise/android-labs-2020 that referenced this issue Oct 6, 2020
zengsn added a commit that referenced this issue Oct 6, 2020
zengsn added a commit that referenced this issue Oct 6, 2020
zengsn added a commit that referenced this issue Oct 6, 2020
zengsn added a commit that referenced this issue Oct 6, 2020
Unknowuse added a commit to Unknowuse/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
JieBro333 pushed a commit to JieBro333/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
JieBro333 pushed a commit to JieBro333/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
JieBro333 pushed a commit to JieBro333/android-labs-2020 that referenced this issue Oct 6, 2020
JieBro333 pushed a commit to JieBro333/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
Jadore147258369 added a commit to Jadore147258369/android-labs-2020 that referenced this issue Oct 6, 2020
zengsn added a commit that referenced this issue Dec 3, 2020
1728799039 added a commit to 1728799039/android-labs-2020 that referenced this issue Dec 8, 2020
zengsn added a commit that referenced this issue Dec 16, 2020
1814080911138 added a commit to 1814080911138/android-labs-2020 that referenced this issue Dec 16, 2020
1814080911138 added a commit to 1814080911138/android-labs-2020 that referenced this issue Dec 16, 2020
1814080911138 added a commit to 1814080911138/android-labs-2020 that referenced this issue Dec 17, 2020
1814080911138 added a commit to 1814080911138/android-labs-2020 that referenced this issue Dec 17, 2020
1814080911138 added a commit to 1814080911138/android-labs-2020 that referenced this issue Dec 17, 2020
jaydjxing added a commit to jaydjxing/android-labs-2020 that referenced this issue Dec 17, 2020
JeesionChone added a commit to JeesionChone/android-labs-2020 that referenced this issue Dec 17, 2020
JeesionChone added a commit to JeesionChone/android-labs-2020 that referenced this issue Dec 17, 2020
SaTarU1IX pushed a commit to SaTarU1IX/android-labs-2020 that referenced this issue Dec 18, 2020
zengsn added a commit that referenced this issue Dec 18, 2020
zengsn added a commit that referenced this issue Dec 18, 2020
zengsn added a commit that referenced this issue Dec 18, 2020
zengsn added a commit that referenced this issue Dec 18, 2020
zengsn added a commit that referenced this issue Dec 18, 2020
zengsn added a commit that referenced this issue Dec 18, 2020
#2 #496 第2次实验和实验报告
zengsn added a commit that referenced this issue Dec 18, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 18, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 18, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 18, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 18, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 20, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 20, 2020
1nnocent1 added a commit to 1nnocent1/android-labs-2020 that referenced this issue Dec 20, 2020
zengsn added a commit that referenced this issue Dec 20, 2020
zhengtingting1 added a commit to zhengtingting1/android-labs-2020 that referenced this issue Dec 23, 2020
JeesionChone added a commit to JeesionChone/android-labs-2020 that referenced this issue Dec 24, 2020
zengsn pushed a commit that referenced this issue Jan 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Lab 实验要求
Projects
None yet
Development

No branches or pull requests

1 participant