Skip to content

Commit

Permalink
hzuapps#2 第二次实验(修改)
Browse files Browse the repository at this point in the history
  • Loading branch information
Min4396 committed May 31, 2018
1 parent b8423b0 commit 05c623f
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 1 deletion.
Binary file added soft1614080902434/2.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions soft1614080902434/2.app/2.app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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_);
}
}
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions soft1614080902434/2.app/2.app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">微信聊天</string>
</resources>
2 changes: 1 addition & 1 deletion soft1614080902434/report1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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的用法,导致自己去网上找了很久,终于做好了。
35 changes: 35 additions & 0 deletions soft1614080902434/report2.md
Original file line number Diff line number Diff line change
@@ -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的结构,并知道怎么创建文件。

0 comments on commit 05c623f

Please sign in to comment.