-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdditionBasicCorrect.java
35 lines (29 loc) · 1.29 KB
/
AdditionBasicCorrect.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.example.funmathv2;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class AdditionBasicCorrect extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_addition_basic_correct);
Button buttonAdditionBasicBack = (Button) findViewById(R.id.buttonAdditionBasicBack);
buttonAdditionBasicBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent startMainActivity = new Intent(getApplicationContext(), MainActivity.class);
startActivity(startMainActivity);
}
});
Button buttonAdditionBasicAgain = (Button) findViewById(R.id.buttonAdditionBasicAgain);
buttonAdditionBasicAgain.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent startAdditionBasic = new Intent(getApplicationContext(), AdditionBasic.class);
startActivity(startAdditionBasic);
}
});
}
}