forked from Jasmine-Carson/RightsAndResources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aef2b09
commit 70c6e19
Showing
10 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.girlswhocode.test; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class AssaultLaws extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_assault_laws); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.girlswhocode.test; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class AssaultResources extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_assault_resources); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.girlswhocode.test; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class AssaultTips extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_assault_tips); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.example.girlswhocode.test; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class ReportAssault extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_report_assault); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.example.girlswhocode.test.AssaultLaws"> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.example.girlswhocode.test.AssaultResources"> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.example.girlswhocode.test.AssaultTips"> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.example.girlswhocode.test.ReportAssault"> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.example.girlswhocode.test.SexualAssault" | ||
tools:layout_editor_absoluteY="81dp" | ||
tools:layout_editor_absoluteX="0dp"> | ||
|
||
<Button | ||
android:id="@+id/button18" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/tips_to_avoid_assault" | ||
tools:layout_constraintTop_creator="1" | ||
tools:layout_constraintRight_creator="1" | ||
app:layout_constraintRight_toRightOf="parent" | ||
android:layout_marginTop="108dp" | ||
tools:layout_constraintLeft_creator="1" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<Button | ||
android:id="@+id/button19" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/laws" | ||
tools:layout_constraintTop_creator="1" | ||
android:layout_marginStart="6dp" | ||
android:layout_marginTop="21dp" | ||
app:layout_constraintTop_toBottomOf="@+id/button18" | ||
tools:layout_constraintLeft_creator="1" | ||
app:layout_constraintLeft_toLeftOf="@+id/button21" | ||
android:layout_marginLeft="6dp" /> | ||
|
||
<Button | ||
android:id="@+id/button20" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/resourc" | ||
tools:layout_constraintRight_creator="1" | ||
tools:layout_constraintBottom_creator="1" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
tools:layout_constraintLeft_creator="1" | ||
android:layout_marginBottom="140dp" | ||
app:layout_constraintLeft_toLeftOf="parent" /> | ||
|
||
<Button | ||
android:id="@+id/button21" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/reporting" | ||
tools:layout_constraintBottom_creator="1" | ||
app:layout_constraintBottom_toTopOf="@+id/button20" | ||
android:layout_marginStart="1dp" | ||
tools:layout_constraintLeft_creator="1" | ||
android:layout_marginBottom="24dp" | ||
app:layout_constraintLeft_toLeftOf="@+id/button20" | ||
android:layout_marginLeft="1dp" /> | ||
</android.support.constraint.ConstraintLayout> |