Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #584 from zcjzzf/master
Browse files Browse the repository at this point in the history
#1 #407 第一次实验
  • Loading branch information
zengsn authored Oct 14, 2020
2 parents 3c29edd + e6f6bb6 commit 86c7151
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
7 changes: 7 additions & 0 deletions students/net1814080903214/Net1814080903214Activity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package Net1814080903214;

public class Net1814080903214Activity {
static public void main(String[] args){
System.out.println("开始游戏");
}
}
21 changes: 21 additions & 0 deletions students/net1814080903214/app/src/main/AndroidManifest.xml
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="edu.hzuapps.androidlabs">

<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=".Net1814080903214Activity"
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package edu.hzuapp.androidlabs;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Net1814080903214Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Button buttonToGame = (Button)findViewById(R.id.toGame);
buttonToGame.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(Net1814080903214Activity.this, GameActivity.class);
startActivity(intent);
}
}
);


Button buttonToHistoryScore = (Button)findViewById(R.id.toHistoryScore);
buttonToHistoryScore.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(Net1814080903214Activity.this, HistoryScoreActivity.class);
startActivity(intent);
}
}
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package edu.hzuapp.androidlabs;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class ResetActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reset);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package edu.hzuapp.androidlabs;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class StartActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_start);
}
}

0 comments on commit 86c7151

Please sign in to comment.