From 89b73f590624fcd523f1c4d9cdf7b8971d9a725f Mon Sep 17 00:00:00 2001 From: bspeice Date: Tue, 1 Oct 2013 19:39:20 -0400 Subject: [PATCH] Add new activities for Home, Parking, and Registration These activities (including Alerts) will form the basis of functionality --- AndroidManifest.xml | 14 +++++++++- bin/AndroidManifest.xml | 14 +++++++++- res/layout/activity_home.xml | 16 ++++++++++++ res/layout/activity_parking.xml | 16 ++++++++++++ res/layout/activity_registration.xml | 16 ++++++++++++ res/menu/home.xml | 9 +++++++ res/menu/parking.xml | 9 +++++++ res/menu/registration.xml | 9 +++++++ res/values/strings.xml | 5 +++- src/com/uncc/gameday/activities/Home.java | 26 +++++++++++++++++++ src/com/uncc/gameday/activities/Parking.java | 24 +++++++++++++++++ .../uncc/gameday/activities/Registration.java | 26 +++++++++++++++++++ 12 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 res/layout/activity_home.xml create mode 100644 res/layout/activity_parking.xml create mode 100644 res/layout/activity_registration.xml create mode 100644 res/menu/home.xml create mode 100644 res/menu/parking.xml create mode 100644 res/menu/registration.xml create mode 100644 src/com/uncc/gameday/activities/Home.java create mode 100644 src/com/uncc/gameday/activities/Parking.java create mode 100644 src/com/uncc/gameday/activities/Registration.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 1f351aa..0059431 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,4 +1,4 @@ - + + + + + + + diff --git a/bin/AndroidManifest.xml b/bin/AndroidManifest.xml index 1f351aa..0059431 100644 --- a/bin/AndroidManifest.xml +++ b/bin/AndroidManifest.xml @@ -1,4 +1,4 @@ - + + + + + + + diff --git a/res/layout/activity_home.xml b/res/layout/activity_home.xml new file mode 100644 index 0000000..0d504af --- /dev/null +++ b/res/layout/activity_home.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/res/layout/activity_parking.xml b/res/layout/activity_parking.xml new file mode 100644 index 0000000..756d2b5 --- /dev/null +++ b/res/layout/activity_parking.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/res/layout/activity_registration.xml b/res/layout/activity_registration.xml new file mode 100644 index 0000000..fd63cb1 --- /dev/null +++ b/res/layout/activity_registration.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/res/menu/home.xml b/res/menu/home.xml new file mode 100644 index 0000000..1db892a --- /dev/null +++ b/res/menu/home.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/res/menu/parking.xml b/res/menu/parking.xml new file mode 100644 index 0000000..1db892a --- /dev/null +++ b/res/menu/parking.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/res/menu/registration.xml b/res/menu/registration.xml new file mode 100644 index 0000000..1db892a --- /dev/null +++ b/res/menu/registration.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 414be3b..4b04490 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,8 +1,11 @@ - + UNCCGameDay Alert Settings Welcome to UNCC GameDay! + Parking + Registration + Home diff --git a/src/com/uncc/gameday/activities/Home.java b/src/com/uncc/gameday/activities/Home.java new file mode 100644 index 0000000..259af87 --- /dev/null +++ b/src/com/uncc/gameday/activities/Home.java @@ -0,0 +1,26 @@ +package com.uncc.gameday.activities; + +import com.uncc.gameday.R; +import com.uncc.gameday.R.layout; +import com.uncc.gameday.R.menu; + +import android.os.Bundle; +import android.app.Activity; +import android.view.Menu; + +public class Home 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.home, menu); + return true; + } + +} diff --git a/src/com/uncc/gameday/activities/Parking.java b/src/com/uncc/gameday/activities/Parking.java new file mode 100644 index 0000000..d662d3c --- /dev/null +++ b/src/com/uncc/gameday/activities/Parking.java @@ -0,0 +1,24 @@ +package com.uncc.gameday.activities; + +import com.uncc.gameday.R; + +import android.os.Bundle; +import android.app.Activity; +import android.view.Menu; + +public class Parking extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_parking); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.parking, menu); + return true; + } + +} diff --git a/src/com/uncc/gameday/activities/Registration.java b/src/com/uncc/gameday/activities/Registration.java new file mode 100644 index 0000000..94acdae --- /dev/null +++ b/src/com/uncc/gameday/activities/Registration.java @@ -0,0 +1,26 @@ +package com.uncc.gameday.activities; + +import com.uncc.gameday.R; +import com.uncc.gameday.R.layout; +import com.uncc.gameday.R.menu; + +import android.os.Bundle; +import android.app.Activity; +import android.view.Menu; + +public class Registration extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_registration); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.registration, menu); + return true; + } + +}