-
Notifications
You must be signed in to change notification settings - Fork 0
/
SubtractionMenu.java
35 lines (29 loc) · 1.28 KB
/
SubtractionMenu.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 SubtractionMenu extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_subtraction_menu);
Button buttonSubtractionBasic = (Button) findViewById(R.id.buttonSubtractionBasic);
buttonSubtractionBasic.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent startSubtractionBasic = new Intent(getApplicationContext(), SubtractionBasic.class);
startActivity(startSubtractionBasic);
}
});
Button buttonSubtractionAdv = (Button) findViewById(R.id.buttonSubtractionAdv);
buttonSubtractionAdv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent startSubtractionAdv = new Intent(getApplicationContext(), SubtractionAdv.class);
startActivity(startSubtractionAdv);
}
});
}
}