From aaae0d3ebaa2fb95bcc9208524520322282dd0d8 Mon Sep 17 00:00:00 2001 From: Chanlex <766698547@qq.com> Date: Wed, 30 Sep 2020 13:37:29 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E4=BA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- students/net1814080903226/AndroidManifest.xml | 36 ---------------- .../Net1814080903226MainviewActivity.java | 31 -------------- .../Net1814080903226MessageViewActivity.java | 31 -------------- .../Net1814080903226MyViewActivity.java | 31 -------------- .../AndroidManifest.xml" | 23 +++++++++++ .../Net1814080903226MainViewActivity.java" | 37 +++++++++++++++++ .../Net1814080903226MessageActivity.java" | 14 +++++++ .../Net1814080903226MyViewActivity.java" | 14 +++++++ .../net_1814080903226_mainview_activity.xml" | 39 ++++++++++++++++++ .../net_1814080903226_message_activity.xml" | 18 ++++++++ .../net_1814080903226_myview_activity.xml" | 18 ++++++++ .../strings.xml" | 3 ++ ...\344\270\200\346\212\245\345\221\212.docx" | Bin ...6\345\275\225\347\273\223\346\236\234.png" | Bin 0 -> 31027 bytes 14 files changed, 166 insertions(+), 129 deletions(-) delete mode 100644 students/net1814080903226/AndroidManifest.xml delete mode 100644 students/net1814080903226/Net1814080903226MainviewActivity.java delete mode 100644 students/net1814080903226/Net1814080903226MessageViewActivity.java delete mode 100644 students/net1814080903226/Net1814080903226MyViewActivity.java create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/AndroidManifest.xml" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MainViewActivity.java" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MessageActivity.java" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MyViewActivity.java" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/net_1814080903226_mainview_activity.xml" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/net_1814080903226_message_activity.xml" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/net_1814080903226_myview_activity.xml" create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/strings.xml" rename "students/net1814080903226/\345\256\236\351\252\214\344\270\200.docx" => "students/net1814080903226/\345\256\236\351\252\214\344\272\214/\345\256\236\351\252\214\344\270\200\346\212\245\345\221\212.docx" (100%) create mode 100644 "students/net1814080903226/\345\256\236\351\252\214\344\272\214/\347\233\256\345\275\225\347\273\223\346\236\234.png" diff --git a/students/net1814080903226/AndroidManifest.xml b/students/net1814080903226/AndroidManifest.xml deleted file mode 100644 index 2d3cc2fa1..000000000 --- a/students/net1814080903226/AndroidManifest.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/students/net1814080903226/Net1814080903226MainviewActivity.java b/students/net1814080903226/Net1814080903226MainviewActivity.java deleted file mode 100644 index bb5a9ac2a..000000000 --- a/students/net1814080903226/Net1814080903226MainviewActivity.java +++ /dev/null @@ -1,31 +0,0 @@ -package edu.hzuapps.androidlabs; - -import android.os.Bundle; - -import com.google.android.material.floatingactionbutton.FloatingActionButton; -import com.google.android.material.snackbar.Snackbar; - -import androidx.appcompat.app.AppCompatActivity; -import androidx.appcompat.widget.Toolbar; - -import android.view.View; - -public class Net1814080903226MainviewActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_net1814080903226_mainview); - Toolbar toolbar = findViewById(R.id.toolbar); - setSupportActionBar(toolbar); - - FloatingActionButton fab = 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(); - } - }); - } -} \ No newline at end of file diff --git a/students/net1814080903226/Net1814080903226MessageViewActivity.java b/students/net1814080903226/Net1814080903226MessageViewActivity.java deleted file mode 100644 index ecb33d6f6..000000000 --- a/students/net1814080903226/Net1814080903226MessageViewActivity.java +++ /dev/null @@ -1,31 +0,0 @@ -package edu.hzuapps.androidlabs; - -import android.os.Bundle; - -import com.google.android.material.floatingactionbutton.FloatingActionButton; -import com.google.android.material.snackbar.Snackbar; - -import androidx.appcompat.app.AppCompatActivity; -import androidx.appcompat.widget.Toolbar; - -import android.view.View; - -public class Net1814080903226MessageViewActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_net1814080903226_message_view); - Toolbar toolbar = findViewById(R.id.toolbar); - setSupportActionBar(toolbar); - - FloatingActionButton fab = 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(); - } - }); - } -} \ No newline at end of file diff --git a/students/net1814080903226/Net1814080903226MyViewActivity.java b/students/net1814080903226/Net1814080903226MyViewActivity.java deleted file mode 100644 index 3eacf7adf..000000000 --- a/students/net1814080903226/Net1814080903226MyViewActivity.java +++ /dev/null @@ -1,31 +0,0 @@ -package edu.hzuapps.androidlabs; - -import android.os.Bundle; - -import com.google.android.material.floatingactionbutton.FloatingActionButton; -import com.google.android.material.snackbar.Snackbar; - -import androidx.appcompat.app.AppCompatActivity; -import androidx.appcompat.widget.Toolbar; - -import android.view.View; - -public class Net1814080903226MyViewActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_net1814080903226_my_view); - Toolbar toolbar = findViewById(R.id.toolbar); - setSupportActionBar(toolbar); - - FloatingActionButton fab = 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(); - } - }); - } -} \ No newline at end of file diff --git "a/students/net1814080903226/\345\256\236\351\252\214\344\272\214/AndroidManifest.xml" "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/AndroidManifest.xml" new file mode 100644 index 000000000..d81374c8d --- /dev/null +++ "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/AndroidManifest.xml" @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MainViewActivity.java" "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MainViewActivity.java" new file mode 100644 index 000000000..c1c8d3a7a --- /dev/null +++ "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MainViewActivity.java" @@ -0,0 +1,37 @@ +package edu.hzuapps.androidlabs; + +import androidx.appcompat.app.AppCompatActivity; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Net1814080903226MainViewActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.net_1814080903226_mainview_activity); + + final Net1814080903226MainViewActivity thisActivity = this; + Button button = (Button) findViewById(R.id.button); + button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(thisActivity,Net1814080903226MyViewActivity.class); + thisActivity.startActivity(intent); + } + }); + + Button button2 = (Button) findViewById(R.id.button2); + button2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(thisActivity,Net1814080903226MessageActivity.class); + thisActivity.startActivity(intent); + } + }); + + } +} \ No newline at end of file diff --git "a/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MessageActivity.java" "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MessageActivity.java" new file mode 100644 index 000000000..363f9ecad --- /dev/null +++ "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MessageActivity.java" @@ -0,0 +1,14 @@ +package edu.hzuapps.androidlabs; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; + +public class Net1814080903226MessageActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.net_1814080903226_message_activity); + } +} \ No newline at end of file diff --git "a/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MyViewActivity.java" "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MyViewActivity.java" new file mode 100644 index 000000000..d08c7aca3 --- /dev/null +++ "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/Net1814080903226MyViewActivity.java" @@ -0,0 +1,14 @@ +package edu.hzuapps.androidlabs; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; + +public class Net1814080903226MyViewActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.net_1814080903226_myview_activity); + } +} \ No newline at end of file diff --git "a/students/net1814080903226/\345\256\236\351\252\214\344\272\214/net_1814080903226_mainview_activity.xml" "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/net_1814080903226_mainview_activity.xml" new file mode 100644 index 000000000..cee60c288 --- /dev/null +++ "b/students/net1814080903226/\345\256\236\351\252\214\344\272\214/net_1814080903226_mainview_activity.xml" @@ -0,0 +1,39 @@ + + + + + +