-
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 #1495 from chenjiahui-xxz/master
#实验2
- Loading branch information
Showing
6 changed files
with
109 additions
and
5 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package edu.hzuapps.androidlabs.com1614080901134; | ||
|
||
// | ||
public class Com1614080901134Activity { | ||
|
||
package edu.hzuapps.androidlabs.com1614080901134; | ||
|
||
public class Com1614080901134Activity { | ||
|
||
} |
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,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="edu.hzuapps.androidlabs.com1614080901134"> | ||
|
||
<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=".Com1614080901134Activity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
31 changes: 31 additions & 0 deletions
31
.../app/src/main/java/edu/hzuapps/androidlabs/Com1614080901134/Com1614080901134Activity.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,31 @@ | ||
package edu.hzuapps.androidlabs.com1614080901134; | ||
|
||
import android.os.Bundle; | ||
import android.support.design.widget.FloatingActionButton; | ||
import android.support.design.widget.Snackbar; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.support.v7.widget.Toolbar; | ||
import android.view.View; | ||
|
||
import com.example.app.R; | ||
|
||
public class Com1614080901134Activity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_com2); | ||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | ||
setSupportActionBar(toolbar); | ||
|
||
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); | ||
fab.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View view) { | ||
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) | ||
.setAction("Action", null).show(); | ||
} | ||
}); | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
com1614080901134/app/src/main/res/layout/activity_com1614080901134.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,9 @@ | ||
<?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="edu.hzuapps.androidlabs.Com1614080901134.Com1614080901134Activity"> | ||
|
||
</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,4 @@ | ||
<resources> | ||
<string name="app_name">订单系统</string> | ||
<string name="title_activity_com1614080901134">Com1614080901134Activity</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,39 @@ | ||
# 1.实验要求 | ||
|
||
|
||
1. 在Issues中创建自己的选题:https://github.com/hzuapps/android-labs-2018/issues ; | ||
2. 根据自选题目,编写一个或多个Activity(所有均带上学号前缀,放到自己的Java包下); | ||
3. 将标题设置为自己的学号+对应的功能或题目; | ||
4. 根据自己选择的题目实现Activity中导航、调用等功能(选做)。 | ||
|
||
|
||
# 2.实验步骤 | ||
|
||
1. 阅读实验要求:https://github.com/hzuapps/android-labs-2018/labels/Lab | ||
|
||
2. 在电脑上Android Studio编写代码 | ||
|
||
``` | ||
// 代码要可以运行! | ||
``` | ||
|
||
3. 使用Git将代码提交到自己的库中:https://github.com/chenjiahui-xxz/android-labs-2018 | ||
``` | ||
$ git pull | ||
$ git add Com1614080901134/* | ||
$ git commit -m " 实验二" | ||
$ git push | ||
``` | ||
|
||
4. 在自己的GitHub库上创建和发送Pull Request(注意查看Changed files) | ||
``` | ||
// 是否只修改了自己的文件? | ||
``` | ||
|
||
5. 在GitHub中使用Markdown文件编写实验报告(report1.md, report2.md) | ||
``` | ||
// 保存在自己的文件夹下 | ||
``` | ||
|
||
# 3.实验体会 | ||
通过这次实验,第一次使用安卓工具,进一步熟悉了Android应用程序与及初步掌握运行过程,创建自主命名的项目与及修改相应的代码,进一步了解了github |