mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-04 23:28:12 -05:00
Add new activities for Home, Parking, and Registration
These activities (including Alerts) will form the basis of functionality
This commit is contained in:
parent
d37d705867
commit
89b73f5906
@ -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" />
|
||||
|
||||
|
@ -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" />
|
||||
|
||||
|
16
res/layout/activity_home.xml
Normal file
16
res/layout/activity_home.xml
Normal 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>
|
16
res/layout/activity_parking.xml
Normal file
16
res/layout/activity_parking.xml
Normal 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>
|
16
res/layout/activity_registration.xml
Normal file
16
res/layout/activity_registration.xml
Normal 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
9
res/menu/home.xml
Normal 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
9
res/menu/parking.xml
Normal 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/registration.xml
Normal file
9
res/menu/registration.xml
Normal 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>
|
@ -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>
|
||||
|
26
src/com/uncc/gameday/activities/Home.java
Normal file
26
src/com/uncc/gameday/activities/Home.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
24
src/com/uncc/gameday/activities/Parking.java
Normal file
24
src/com/uncc/gameday/activities/Parking.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
26
src/com/uncc/gameday/activities/Registration.java
Normal file
26
src/com/uncc/gameday/activities/Registration.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user