diff --git a/soft1614080902117/MyApplication8/app/src/main/AndroidManifest.xml b/soft1614080902117/MyApplication8/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..bde9b3a68 --- /dev/null +++ b/soft1614080902117/MyApplication8/app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/soft1614080902117/MyApplication8/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902117/myapplication/Soft1614080902117Activity.java b/soft1614080902117/MyApplication8/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902117/myapplication/Soft1614080902117Activity.java new file mode 100644 index 000000000..8468b196a --- /dev/null +++ b/soft1614080902117/MyApplication8/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902117/myapplication/Soft1614080902117Activity.java @@ -0,0 +1,13 @@ +package edu.hzuapps.androidlabs.soft1614080902117.myapplication; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Soft1614080902117Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1614080902117); + } +} diff --git a/soft1614080902117/MyApplication8/app/src/main/res/layout/activity_soft1614080902117.xml b/soft1614080902117/MyApplication8/app/src/main/res/layout/activity_soft1614080902117.xml new file mode 100644 index 000000000..8ef362435 --- /dev/null +++ b/soft1614080902117/MyApplication8/app/src/main/res/layout/activity_soft1614080902117.xml @@ -0,0 +1,18 @@ + + + + + + diff --git a/soft1614080902117/MyApplication8/app/src/main/res/values/strings.xml b/soft1614080902117/MyApplication8/app/src/main/res/values/strings.xml new file mode 100644 index 000000000..f5b531d0e --- /dev/null +++ b/soft1614080902117/MyApplication8/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Soft1614080902117备忘录 + diff --git a/soft1614080902117/Soft1614080902117Activity.java b/soft1614080902117/Soft1614080902117Activity.java deleted file mode 100644 index 523304b03..000000000 --- a/soft1614080902117/Soft1614080902117Activity.java +++ /dev/null @@ -1,5 +0,0 @@ -package edu.hzuapps.androidlabs.soft1614080902117; - -public class Soft1614080902117Activity { - -} \ No newline at end of file diff --git a/soft1614080902117/report2.md b/soft1614080902117/report2.md new file mode 100644 index 000000000..d2f7ce501 --- /dev/null +++ b/soft1614080902117/report2.md @@ -0,0 +1,102 @@ +# 第二次实验 + +## 1.实验目标 +Android组件编程 + +## 2.实验步骤 + +1. 阅读实验要求:https://github.com/hzuapps/android-labs-2018/labels/Lab + +2. 在电脑上Android Studio编写代码 + +``` +// 代码要可以运行! +``` + +3. 使用Git将代码提交到自己的库中:https://github.com/YOUR_NAME/android-labs-2018 +``` +$ git pull +$ git add 学号目录/* +$ git commit "#12345678 " +$ git push +``` + +4. 在自己的GitHub库上创建和发送Pull Request(注意查看Changed files) +``` +// 是否只修改了自己的文件? +``` + +5. 在GitHub中使用Markdown文件编写实验报告(report1.md, report2.md) +``` +// 保存在自己的文件夹下 +## 3.实验结果 +1.Soft1614080902117Activity.java + +package edu.hzuapps.androidlabs.soft1614080902117.myapplication; ++ ++import android.support.v7.app.AppCompatActivity; ++import android.os.Bundle; ++ ++public class Soft1614080902117Activity extends AppCompatActivity { ++ ++ @Override ++ protected void onCreate(Bundle savedInstanceState) { ++ super.onCreate(savedInstanceState); ++ setContentView(R.layout.activity_soft1614080902117); ++ } ++} + +2.AndroidManifest.xml + + + + + + + + + + + + + + + + +3.activity_soft1614080902117.xml + ++ ++ ++ ++ ++ ++ + +4.strings.xml + + ++ Soft1614080902117备忘录 ++ + +## 4.实验体会 + 本次实验使用Android Studio编写代码,通过此次实验学会了在Android中Activity的 + 创建、标题的修改,同时也选择了一个相对简单的选题进行接下来的实验。