-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomeworkActivity.java
120 lines (86 loc) · 3.61 KB
/
HomeworkActivity.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package com.example.musicappcsia;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class HomeworkActivity extends AppCompatActivity {
/*
private Button btn_organize;
private Button btn_customize;
private Button btn_see;
public void openOrganizeHomeworkActivity() {
Intent scheduleIntent = new Intent(this, OrganizeHomeworkActivity.class);
startActivity(scheduleIntent);
}
public void openCustomizeHomeworkActivity() {
Intent scheduleIntent = new Intent(this, CustomizeHomeworkActivity.class);
startActivity(scheduleIntent);
}
public void openSeeHomeworkActivity() {
Intent scheduleIntent = new Intent(this, SeeHomeworkActivity.class);
startActivity(scheduleIntent);
}*/
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_student_past_hw_progress);
/*
//initialize buttons, cast it to Button
btn_organize = (Button) findViewById(R.id.button40);
btn_organize.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openOrganizeHomeworkActivity();
}
});
btn_customize = (Button) findViewById(R.id.button41);
btn_customize.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openCustomizeHomeworkActivity();
}
});
btn_see = (Button) findViewById(R.id.button42);
btn_see.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openSeeHomeworkActivity();
}
});*/
/*
Button btn_organize = (Button)findViewById(R.id.button40);
btn_organize.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {
Intent myIntent = new Intent(HomeworkActivity.this, TeacherActivity.class);
HomeworkActivity.this.startActivity(myIntent);
}
});
Button btn_customize = (Button)findViewById(R.id.button41);
btn_customize.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {
Intent myIntent = new Intent(HomeworkActivity.this, ViewHomeworkActivity.class);
HomeworkActivity.this.startActivity(myIntent);
}
});
Button btn_see = (Button)findViewById(R.id.button142);
btn_see.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {
Intent myIntent = new Intent(HomeworkActivity.this, SeeHomeworkDaysActivity.class);
HomeworkActivity.this.startActivity(myIntent);
}
});*/
/*
Button btn_customize = (Button)findViewById(R.id.button41);
btn_customize.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {
Intent myIntent = new Intent(HomeworkActivity.this, CustomizeHomeworkActivity.class);
HomeworkActivity.this.startActivity(myIntent);
}
});
Button btn_see = (Button)findViewById(R.id.button42);
btn_see.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {
Intent myIntent = new Intent(HomeworkActivity.this, SeeHomeworkActivity.class);
HomeworkActivity.this.startActivity(myIntent);
}
}); */
}
}