diff --git a/soft1614080902434/2.0.png b/soft1614080902434/2.0.png new file mode 100644 index 000000000..86f15d118 Binary files /dev/null and b/soft1614080902434/2.0.png differ diff --git a/soft1614080902434/2.app/2.app/src/main/AndroidManifest.xml b/soft1614080902434/2.app/2.app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..cf8b69516 --- /dev/null +++ b/soft1614080902434/2.app/2.app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="edu.hzuapps.androidlabs.soft1614080902434"> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name=".Soft1614080902434_Activity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ No newline at end of file diff --git a/soft1614080902434/2.app/2.app/src/main/java/edu/hzupps/androidlabs/soft1614080902434/Soft1614080902434_Activity.java b/soft1614080902434/2.app/2.app/src/main/java/edu/hzupps/androidlabs/soft1614080902434/Soft1614080902434_Activity.java new file mode 100644 index 000000000..99ebe054e --- /dev/null +++ b/soft1614080902434/2.app/2.app/src/main/java/edu/hzupps/androidlabs/soft1614080902434/Soft1614080902434_Activity.java @@ -0,0 +1,13 @@ +package edu.hzuapps.androidlabs.soft1614080902434; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Soft1614080902434_Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1614080902434_); + } +} diff --git a/soft1614080902434/2.app/2.app/src/main/res/layout/activity_soft1614080902434_.xml b/soft1614080902434/2.app/2.app/src/main/res/layout/activity_soft1614080902434_.xml new file mode 100644 index 000000000..4eadf0a93 --- /dev/null +++ b/soft1614080902434/2.app/2.app/src/main/res/layout/activity_soft1614080902434_.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".Soft1614080902434_Activity"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="微信聊天" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + +</android.support.constraint.ConstraintLayout> \ No newline at end of file diff --git a/soft1614080902434/2.app/2.app/src/main/res/values/strings.xml b/soft1614080902434/2.app/2.app/src/main/res/values/strings.xml new file mode 100644 index 000000000..9bce7dec3 --- /dev/null +++ b/soft1614080902434/2.app/2.app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ +<resources> + <string name="app_name">微信聊天</string> +</resources> diff --git a/soft1614080902434/report1.md b/soft1614080902434/report1.md index c045b26e4..2321d153a 100644 --- a/soft1614080902434/report1.md +++ b/soft1614080902434/report1.md @@ -19,7 +19,7 @@ (6)提交代码并发Pull Request。 ## 3.实验结果 - ++![image text]https://github.com/Min4396/android-labs-2018/blob/master/soft1614080902434/1.0.png ## 4.实验心得 因为第一次接触Android,感觉很陌生,下载Android3.0之后,不会用,要自己去百度找答案,然后就是git的使用了,因为不知道git的用法,导致自己去网上找了很久,终于做好了。 \ No newline at end of file diff --git a/soft1614080902434/report2.md b/soft1614080902434/report2.md new file mode 100644 index 000000000..97ff7f406 --- /dev/null +++ b/soft1614080902434/report2.md @@ -0,0 +1,35 @@ +# 第二次试验 +## 1.实验目的 + +Android组件编程 + +2.实验步骤 + +1.在Issues中创建自己的选题,我选的题目是《微信聊天》 + +2.在Android Stduio 中新建一个项目Calculator + +3.在java目录下依次创建 + +edu\hzuapps\androidlabs\Soft1614080902434包,在此目录下新建Java类Soft1614080902434 + +4.将res\layout下的activity_main.xml重构重名字为soft_1614080902434_activity.xml + +5.把res\values下的strings.xml中的Calculator 改成微信聊天 + +6.按Studio的目录的目录结构新建文件app,在app下新建src\main,在main目录下新建java和res, +并把AndroidManifest.xml粘贴至此处;在java目录下依次新建 +edu\hzuapps\androidlabs\Soft1614080902434, +并将Soft1614080902434.java粘贴至Soft1614080902434; + +在res新建layout,将soft_1614080902434_activity.xml粘贴至layout; +最后在res新建values,将strings.xml粘贴至values + +7.打开git bash,将文件夹push上github,向老师提交pull request. + + +## 3.实验结果 + + +## 4.实验体会 + 这次实验初步了解了Android的结构,并知道怎么创建文件。 \ No newline at end of file