Add new activities for Home, Parking, and Registration

These activities (including Alerts) will form the basis of functionality
This commit is contained in:
bspeice 2013-10-01 19:39:20 -04:00
parent d37d705867
commit 89b73f5906
12 changed files with 181 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.uncc.gameday"
android:versionCode="1"
@ -16,6 +16,18 @@
<activity
android:name="com.uncc.gameday.activities.Alerts"
android:label="@string/app_name" >
</activity>
<activity
android:name="com.uncc.gameday.activities.Parking"
android:label="@string/title_activity_parking" >
</activity>
<activity
android:name="com.uncc.gameday.activities.Registration"
android:label="@string/title_activity_registration" >
</activity>
<activity
android:name="com.uncc.gameday.activities.Home"
android:label="@string/title_activity_home" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.uncc.gameday"
android:versionCode="1"
@ -16,6 +16,18 @@
<activity
android:name="com.uncc.gameday.activities.Alerts"
android:label="@string/app_name" >
</activity>
<activity
android:name="com.uncc.gameday.activities.Parking"
android:label="@string/title_activity_parking" >
</activity>
<activity
android:name="com.uncc.gameday.activities.Registration"
android:label="@string/title_activity_registration" >
</activity>
<activity
android:name="com.uncc.gameday.activities.Home"
android:label="@string/title_activity_home" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -0,0 +1,16 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Home" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>

View File

@ -0,0 +1,16 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Parking" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>

View File

@ -0,0 +1,16 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Registration" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>

9
res/menu/home.xml Normal file
View File

@ -0,0 +1,9 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_alert_settings"/>
</menu>

9
res/menu/parking.xml Normal file
View File

@ -0,0 +1,9 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_alert_settings"/>
</menu>

View File

@ -0,0 +1,9 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_alert_settings"/>
</menu>

View File

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">UNCCGameDay</string>
<string name="action_alert_settings">Alert Settings</string>
<string name="hello_world">Welcome to UNCC GameDay!</string>
<string name="title_activity_parking">Parking</string>
<string name="title_activity_registration">Registration</string>
<string name="title_activity_home">Home</string>
</resources>

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}