From 675bdadf465d5de9109f3d32ab360c243dbe637f Mon Sep 17 00:00:00 2001 From: qxadc Date: Tue, 13 Oct 2020 16:44:37 +0800 Subject: [PATCH] =?UTF-8?q?#2=20#329=20=E7=AC=AC=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E5=AE=9E=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src/main/AndroidManifest.xml | 23 ++++++++++++ .../hzuapps/androidlabs/OptionsActivity.java | 14 ++++++++ .../edu/hzuapps/androidlabs/PlayActivity.java | 14 ++++++++ .../androidlabs/Sec1814080911130Activity.java | 35 +++++++++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 students/sec1814080911130/app/src/main/AndroidManifest.xml create mode 100644 students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/OptionsActivity.java create mode 100644 students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/PlayActivity.java create mode 100644 students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/Sec1814080911130Activity.java diff --git a/students/sec1814080911130/app/src/main/AndroidManifest.xml b/students/sec1814080911130/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..74bbbc6ab --- /dev/null +++ b/students/sec1814080911130/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/OptionsActivity.java b/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/OptionsActivity.java new file mode 100644 index 000000000..7fc9a29ac --- /dev/null +++ b/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/OptionsActivity.java @@ -0,0 +1,14 @@ +package edu.hzuapps.androidlabs; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; + +public class OptionsActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_options); + } +} diff --git a/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/PlayActivity.java b/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/PlayActivity.java new file mode 100644 index 000000000..6871536be --- /dev/null +++ b/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/PlayActivity.java @@ -0,0 +1,14 @@ +package edu.hzuapps.androidlabs; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; + +public class PlayActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_play); + } +} diff --git a/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/Sec1814080911130Activity.java b/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/Sec1814080911130Activity.java new file mode 100644 index 000000000..2d83281a0 --- /dev/null +++ b/students/sec1814080911130/app/src/main/java/edu/hzuapps/androidlabs/Sec1814080911130Activity.java @@ -0,0 +1,35 @@ +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 Sec1814080911130Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_sec1814080911130); + + final Sec1814080911130Activity thisActivity = this; + Button BtnStart = (Button) findViewById(R.id.button_start); + BtnStart.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent = new Intent(thisActivity,PlayActivity.class); + thisActivity.startActivity(intent); + } + }); + Button BtnOptions = (Button) findViewById(R.id.button_options); + BtnOptions.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent = new Intent(thisActivity,OptionsActivity.class); + thisActivity.startActivity(intent); + } + }); + } +}