diff --git a/res/drawable-hdpi/ic_action_directions.png b/res/drawable-hdpi/ic_action_directions.png
new file mode 100644
index 0000000..cda5274
Binary files /dev/null and b/res/drawable-hdpi/ic_action_directions.png differ
diff --git a/res/drawable-hdpi/ic_action_settings.png b/res/drawable-hdpi/ic_action_settings.png
new file mode 100644
index 0000000..7887b0e
Binary files /dev/null and b/res/drawable-hdpi/ic_action_settings.png differ
diff --git a/res/drawable-hdpi/ic_action_view_as_list.png b/res/drawable-hdpi/ic_action_view_as_list.png
new file mode 100644
index 0000000..2531383
Binary files /dev/null and b/res/drawable-hdpi/ic_action_view_as_list.png differ
diff --git a/res/drawable-mdpi/ic_action_directions.png b/res/drawable-mdpi/ic_action_directions.png
new file mode 100644
index 0000000..2b86f58
Binary files /dev/null and b/res/drawable-mdpi/ic_action_directions.png differ
diff --git a/res/drawable-mdpi/ic_action_settings.png b/res/drawable-mdpi/ic_action_settings.png
new file mode 100644
index 0000000..ea8bba3
Binary files /dev/null and b/res/drawable-mdpi/ic_action_settings.png differ
diff --git a/res/drawable-mdpi/ic_action_view_as_list.png b/res/drawable-mdpi/ic_action_view_as_list.png
new file mode 100644
index 0000000..6381192
Binary files /dev/null and b/res/drawable-mdpi/ic_action_view_as_list.png differ
diff --git a/res/drawable-xhdpi/ic_action_directions.png b/res/drawable-xhdpi/ic_action_directions.png
new file mode 100644
index 0000000..5099d18
Binary files /dev/null and b/res/drawable-xhdpi/ic_action_directions.png differ
diff --git a/res/drawable-xhdpi/ic_action_settings.png b/res/drawable-xhdpi/ic_action_settings.png
new file mode 100644
index 0000000..a04fe1d
Binary files /dev/null and b/res/drawable-xhdpi/ic_action_settings.png differ
diff --git a/res/drawable-xhdpi/ic_action_view_as_list.png b/res/drawable-xhdpi/ic_action_view_as_list.png
new file mode 100644
index 0000000..a38638e
Binary files /dev/null and b/res/drawable-xhdpi/ic_action_view_as_list.png differ
diff --git a/res/drawable-xxhdpi/ic_action_directions.png b/res/drawable-xxhdpi/ic_action_directions.png
new file mode 100644
index 0000000..2095fcd
Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_directions.png differ
diff --git a/res/drawable-xxhdpi/ic_action_settings.png b/res/drawable-xxhdpi/ic_action_settings.png
new file mode 100644
index 0000000..a9c6b53
Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_settings.png differ
diff --git a/res/drawable-xxhdpi/ic_action_view_as_list.png b/res/drawable-xxhdpi/ic_action_view_as_list.png
new file mode 100644
index 0000000..b00a85f
Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_view_as_list.png differ
diff --git a/res/layout/activity_alerts.xml b/res/layout/activity_alerts.xml
index 4ae934f..11afb63 100644
--- a/res/layout/activity_alerts.xml
+++ b/res/layout/activity_alerts.xml
@@ -1,16 +1,34 @@
-
+
+ android:text="@string/alerts_label_alerts_to_receive"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/menu/alerts.xml b/res/menu/alerts.xml
deleted file mode 100644
index bcabd05..0000000
--- a/res/menu/alerts.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/res/menu/base.xml b/res/menu/base.xml
new file mode 100644
index 0000000..d5dfc3c
--- /dev/null
+++ b/res/menu/base.xml
@@ -0,0 +1,12 @@
+
diff --git a/res/menu/home.xml b/res/menu/home.xml
deleted file mode 100644
index 180d9e6..0000000
--- a/res/menu/home.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/res/menu/parking.xml b/res/menu/parking.xml
deleted file mode 100644
index 1db892a..0000000
--- a/res/menu/parking.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/res/menu/registration.xml b/res/menu/registration.xml
deleted file mode 100644
index 1db892a..0000000
--- a/res/menu/registration.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d3312a8..7ed3a92 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -7,5 +7,9 @@
Parking
Registration
Alerts
+ Select Alerts to Receive:
+ Timed (Reserve Ticket...)
+ Organizations
+ University
diff --git a/src/com/uncc/gameday/activities/Alerts.java b/src/com/uncc/gameday/activities/Alerts.java
index 042ac62..dd0fa3f 100644
--- a/src/com/uncc/gameday/activities/Alerts.java
+++ b/src/com/uncc/gameday/activities/Alerts.java
@@ -1,6 +1,43 @@
package com.uncc.gameday.activities;
+import com.uncc.gameday.R;
+
+import android.os.Bundle;
+import android.view.View;
+import android.widget.CheckBox;
public class Alerts extends MenuActivity {
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_alerts);
+ }
+
+ public void onClickTimedAlerts(View view) {
+ if (((CheckBox) view).isChecked())
+ // Enable Timed alerts
+ ;
+ else
+ // Disable Timed alerts
+ ;
+ }
+
+ public void onClickOrganizationAlerts(View view) {
+ if (((CheckBox) view).isChecked())
+ // Enable Organization alerts
+ ;
+ else
+ // Disable Organization alerts
+ ;
+ }
+
+ public void onClickUniversityAlerts(View view) {
+ if (((CheckBox) view).isChecked())
+ // Enable University alerts
+ ;
+ else
+ // Disable University alerts
+ ;
+ }
+ }
}
diff --git a/src/com/uncc/gameday/activities/Home.java b/src/com/uncc/gameday/activities/Home.java
index d939aad..54c11a4 100644
--- a/src/com/uncc/gameday/activities/Home.java
+++ b/src/com/uncc/gameday/activities/Home.java
@@ -1,6 +1,7 @@
package com.uncc.gameday.activities;
+
public class Home extends MenuActivity {
}
diff --git a/src/com/uncc/gameday/activities/MenuActivity.java b/src/com/uncc/gameday/activities/MenuActivity.java
new file mode 100644
index 0000000..21273aa
--- /dev/null
+++ b/src/com/uncc/gameday/activities/MenuActivity.java
@@ -0,0 +1,42 @@
+package com.uncc.gameday.activities;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+
+import com.uncc.gameday.R;
+
+public class MenuActivity extends Activity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_home);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.base, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ switch (item.getItemId()){
+ case R.id.action_alert_settings:
+ startActivity(new Intent(this, Alerts.class));
+ break;
+ case R.id.action_registration:
+ startActivity(new Intent(this, Registration.class));
+ break;
+ case R.id.action_parking:
+ startActivity(new Intent(this, Parking.class));
+ break;
+ }
+ return true;
+ }
+
+}