parent
d7286a0c74
commit
b5852c539e
@ -0,0 +1,46 @@
|
||||
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");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue