You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
package com.example.musicwork.chuangguan;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.util.Log;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
import com.example.musicwork.R;
|
|
|
|
public class ChooseLevel extends AppCompatActivity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.activity_choose_level);
|
|
Button button_toTeach = (Button) findViewById(R.id.button_toTeach);
|
|
button_toTeach.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
public void onClick(View v) {
|
|
Intent intent = new Intent(ChooseLevel.this, Teach.class);
|
|
//启动
|
|
startActivity(intent);
|
|
|
|
Log.i("TEST", "button onClick");
|
|
}
|
|
});
|
|
|
|
Button button_toGameActivity = (Button) findViewById(R.id.button_toGameActivity);
|
|
button_toGameActivity.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
public void onClick(View v) {
|
|
Intent intent = new Intent(ChooseLevel.this, GameActivity.class);
|
|
//启动
|
|
startActivity(intent);
|
|
|
|
Log.i("TEST", "button onClick");
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
} |