diff --git a/Soft1606070302235/AndroidManifest.xml b/Soft1606070302235/AndroidManifest.xml new file mode 100644 index 000000000..6940d1d45 --- /dev/null +++ b/Soft1606070302235/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Soft1606070302235/java/edu/hzuapps/androidlabs/Soft1606070302235/Soft1606070302235Activity.java b/Soft1606070302235/java/edu/hzuapps/androidlabs/Soft1606070302235/Soft1606070302235Activity.java new file mode 100644 index 000000000..25d7ef2e5 --- /dev/null +++ b/Soft1606070302235/java/edu/hzuapps/androidlabs/Soft1606070302235/Soft1606070302235Activity.java @@ -0,0 +1,52 @@ +package edu.hzuapps.androidlabs.Soft1606070302235; + +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 android.view.Menu; +import android.view.MenuItem; + +public class Soft1606070302235Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1606070302235); + 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(); + } + }); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.menu_soft1606070302235, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + + //noinspection SimplifiableIfStatement + if (id == R.id.action_settings) { + return true; + } + + return super.onOptionsItemSelected(item); + } +} diff --git a/Soft1606070302235/res/layout/activity_soft1606070302235.xml b/Soft1606070302235/res/layout/activity_soft1606070302235.xml new file mode 100644 index 000000000..640be4eee --- /dev/null +++ b/Soft1606070302235/res/layout/activity_soft1606070302235.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Soft1606070302235/res/values/strings.xml b/Soft1606070302235/res/values/strings.xml new file mode 100644 index 000000000..017b7a460 --- /dev/null +++ b/Soft1606070302235/res/values/strings.xml @@ -0,0 +1,4 @@ + + Soft1606070302235备忘录 + Settings + diff --git "a/Soft1606070302235/\347\254\254\344\270\200\346\254\241\345\256\236\351\252\214\346\210\252\345\233\276.png" "b/Soft1606070302235/\347\254\254\344\270\200\346\254\241\345\256\236\351\252\214\346\210\252\345\233\276.png" new file mode 100644 index 000000000..4df77a4ca Binary files /dev/null and "b/Soft1606070302235/\347\254\254\344\270\200\346\254\241\345\256\236\351\252\214\346\210\252\345\233\276.png" differ diff --git "a/Soft1606070302235/\347\254\254\344\270\200\346\254\241\350\257\225\351\252\214.md" "b/Soft1606070302235/\347\254\254\344\270\200\346\254\241\350\257\225\351\252\214.md" new file mode 100644 index 000000000..f98435bd5 --- /dev/null +++ "b/Soft1606070302235/\347\254\254\344\270\200\346\254\241\350\257\225\351\252\214.md" @@ -0,0 +1,18 @@ +第一次试验 + +1、实验目的: + +(1)搭建开发环境,运行。 (2)了解并使用github克隆与上传文件的方法 + +2、实验步骤: + +搭建开发环境(Android Studio 3.1正式版),运行(截图); 加入Git项目(Fork),将项目克隆(Clone)到自己帐号下; $ git clone https://github.com/YOUR_NAME/android-labs-2018/ 创建以学号命名的个人实验目录: soft123456 。 其中,com开头表示计算机班,soft开头表示软件班,数字为个人学号。 创建一个Java类:edu.hzuapps.androidlabs.soft123456.Soft123456Activity.java。 提交代码并发Pull Request,老师合并之后截图。 注意:请在自己选题的Issue中填写题目描述信息。 提交代码的命令: $ git add 你的路径net123456/Net123456Activity.java $ git commit -m "#1 #123 第1次实验" (注意:#123 是你自己创建的Issue号) $ git push + +3、实验结果: + +![](https://github.com/LJJ995/android-labs-2018/blob/master/Soft1606070302235/%E7%AC%AC%E4%B8%80%E6%AC%A1%E5%AE%9E%E9%AA%8C%E6%88%AA%E5%9B%BE.png) + +4、实验体会: + +这次在查看图片代码的时候有点难搞,还是有些不懂 +