-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2495 from AisakaTaika/master
#2 第二次实验
- Loading branch information
Showing
6 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
4 changes: 4 additions & 0 deletions
4
...902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/Soft1614080902435.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package edu.hzuapps.androidlabs.Soft1614080902435; | ||
|
||
public class Soft1614080902435 { | ||
} |
18 changes: 18 additions & 0 deletions
18
soft1614080902435/app/src/main/res/layout/soft_1614080902435_activity.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<resources> | ||
<string name="app_name">标准计算器</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.实验结果 | ||
|
||
 | ||
|
||
## 4.实验心得 | ||
通过此次实验,让我对Android studio的操作有了初步认识,希望下次再接再厉。 |