-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSexualAssault.java
52 lines (49 loc) · 1.77 KB
/
SexualAssault.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
package com.example.girlswhocode.test;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class SexualAssault extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sexual_assault);
Button tips= (Button) findViewById(R.id.button18);
tips.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {getTips();
}
});
Button laws= (Button) findViewById(R.id.button19);
laws.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {getLaws();
}
});
Button report= (Button) findViewById(R.id.button21);
report.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {report();
}
});
Button resource= (Button) findViewById(R.id.button20);
resource.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {resources();
}
});
}
private void getTips() {
Intent intent = new Intent(this, AssaultTips.class);
startActivity(intent);
}
private void getLaws() {
Intent intent = new Intent(this, AssaultLaws.class);
startActivity(intent);
}
private void report() {
Intent intent = new Intent(this, ReportAssault.class);
startActivity(intent);
}
private void resources() {
Intent intent = new Intent(this, AssaultResources.class);
startActivity(intent);
}
}