Skip to content

Commit

Permalink
Merge pull request #2495 from AisakaTaika/master
Browse files Browse the repository at this point in the history
#2 第二次实验
  • Loading branch information
zengsn authored May 30, 2018
2 parents 448b908 + a15a276 commit 10378be
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 0 deletions.
Binary file added soft1614080902435/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 soft1614080902435/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="com.example.pc.standardcalculator">

<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=".MainActivity">
<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,4 @@
package edu.hzuapps.androidlabs.Soft1614080902435;

public class Soft1614080902435 {
}
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=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
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 soft1614080902435/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>
24 changes: 24 additions & 0 deletions soft1614080902435/report2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# **第二次实验**
## **1.实验目标**
Android组件编程
## 2.实验步骤
1.在Issues中创建自己的选题,我的题目是《标准计算器》

2.新建一个项目,起名Standard Calculator

3.在java目录下创建edu\hzuapps\androidlabs\Soft1614080902435包,在此目录下新建一个java类Soft1614080902435

4.将res\layout下的activity_main.xml重构重名字为soft_1614080902435_activity.xml

5.把res\values下的strings.xml中的Standard Calculator 改成标准计算器

6.新建文件夹,命名app,在app下新建src\main,在main目录下新建java和res,并把studio文件夹内的AndroidManifest.xml粘贴至此处;在java目录下依次新建edu\hzuapps\androidlabs\Soft1614080902419,并将Soft1614080902419.java粘贴至Soft1614080902419;在res新建layout,将soft_1614080902419_activity.xml粘贴至layout;最后在res新建values,将strings.xml粘贴至values

7.打开git bash,将文件夹push上github,向老师提交pull request.

## 3.实验结果

![Image text](https://raw.githubusercontent.com/AisakaTaika/android-labs-2018/master/soft1614080902435/2.0.png)

## 4.实验心得
通过此次实验,让我对Android studio的操作有了初步认识,希望下次再接再厉。

0 comments on commit 10378be

Please sign in to comment.