mirror of
				https://github.com/bspeice/UNCCGameDay
				synced 2025-11-04 02:10:35 -05:00 
			
		
		
		
	Add an initial menu, and allow user to visit alerts page
This commit is contained in:
		@ -15,7 +15,7 @@
 | 
				
			|||||||
        android:theme="@style/AppTheme" >
 | 
					        android:theme="@style/AppTheme" >
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name="com.uncc.gameday.activities.Alerts"
 | 
					            android:name="com.uncc.gameday.activities.Alerts"
 | 
				
			||||||
            android:label="@string/app_name" >
 | 
					            android:label="@string/title_activity_alerts" >
 | 
				
			||||||
        </activity>
 | 
					        </activity>
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name="com.uncc.gameday.activities.Parking"
 | 
					            android:name="com.uncc.gameday.activities.Parking"
 | 
				
			||||||
@ -27,7 +27,7 @@
 | 
				
			|||||||
        </activity>
 | 
					        </activity>
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name="com.uncc.gameday.activities.Home"
 | 
					            android:name="com.uncc.gameday.activities.Home"
 | 
				
			||||||
            android:label="@string/title_activity_home" >
 | 
					            android:label="@string/app_name" >
 | 
				
			||||||
            <intent-filter>
 | 
					            <intent-filter>
 | 
				
			||||||
                <action android:name="android.intent.action.MAIN" />
 | 
					                <action android:name="android.intent.action.MAIN" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -15,7 +15,7 @@
 | 
				
			|||||||
        android:theme="@style/AppTheme" >
 | 
					        android:theme="@style/AppTheme" >
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name="com.uncc.gameday.activities.Alerts"
 | 
					            android:name="com.uncc.gameday.activities.Alerts"
 | 
				
			||||||
            android:label="@string/app_name" >
 | 
					            android:label="@string/title_activity_alerts" >
 | 
				
			||||||
        </activity>
 | 
					        </activity>
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name="com.uncc.gameday.activities.Parking"
 | 
					            android:name="com.uncc.gameday.activities.Parking"
 | 
				
			||||||
@ -27,7 +27,7 @@
 | 
				
			|||||||
        </activity>
 | 
					        </activity>
 | 
				
			||||||
        <activity
 | 
					        <activity
 | 
				
			||||||
            android:name="com.uncc.gameday.activities.Home"
 | 
					            android:name="com.uncc.gameday.activities.Home"
 | 
				
			||||||
            android:label="@string/title_activity_home" >
 | 
					            android:label="@string/app_name" >
 | 
				
			||||||
            <intent-filter>
 | 
					            <intent-filter>
 | 
				
			||||||
                <action android:name="android.intent.action.MAIN" />
 | 
					                <action android:name="android.intent.action.MAIN" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								res/drawable-hdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								res/drawable-hdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 532 B  | 
							
								
								
									
										
											BIN
										
									
								
								res/drawable-mdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								res/drawable-mdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 426 B  | 
							
								
								
									
										
											BIN
										
									
								
								res/drawable-xhdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								res/drawable-xhdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 705 B  | 
							
								
								
									
										
											BIN
										
									
								
								res/drawable-xxhdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								res/drawable-xxhdpi/ic_action_warning.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 912 B  | 
@ -1,9 +1,10 @@
 | 
				
			|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
 | 
					<menu xmlns:android="http://schemas.android.com/apk/res/android" >
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <item
 | 
					    <item
 | 
				
			||||||
        android:id="@+id/action_settings"
 | 
					        android:id="@+id/action_alert_settings"
 | 
				
			||||||
        android:orderInCategory="100"
 | 
					        android:orderInCategory="100"
 | 
				
			||||||
        android:showAsAction="never"
 | 
					        android:showAsAction="ifRoom"
 | 
				
			||||||
        android:title="@string/action_alert_settings"/>
 | 
					        android:title="@string/action_alert_settings"
 | 
				
			||||||
 | 
					        android:icon="@drawable/ic_action_warning"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</menu>
 | 
					</menu>
 | 
				
			||||||
 | 
				
			|||||||
@ -6,6 +6,6 @@
 | 
				
			|||||||
    <string name="hello_world">Welcome to UNCC GameDay!</string>
 | 
					    <string name="hello_world">Welcome to UNCC GameDay!</string>
 | 
				
			||||||
    <string name="title_activity_parking">Parking</string>
 | 
					    <string name="title_activity_parking">Parking</string>
 | 
				
			||||||
    <string name="title_activity_registration">Registration</string>
 | 
					    <string name="title_activity_registration">Registration</string>
 | 
				
			||||||
    <string name="title_activity_home">Home</string>
 | 
					    <string name="title_activity_alerts">Alerts</string>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</resources>
 | 
					</resources>
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,9 @@ import com.uncc.gameday.R;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import android.os.Bundle;
 | 
					import android.os.Bundle;
 | 
				
			||||||
import android.app.Activity;
 | 
					import android.app.Activity;
 | 
				
			||||||
 | 
					import android.content.Intent;
 | 
				
			||||||
import android.view.Menu;
 | 
					import android.view.Menu;
 | 
				
			||||||
 | 
					import android.view.MenuItem;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class Alerts extends Activity {
 | 
					public class Alerts extends Activity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -22,4 +24,12 @@ public class Alerts extends Activity {
 | 
				
			|||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public boolean onOptionsItemSelected(MenuItem item) {
 | 
				
			||||||
 | 
					    	switch (item.getItemId()){
 | 
				
			||||||
 | 
					    		case R.id.action_alert_settings:
 | 
				
			||||||
 | 
					    			startActivity(new Intent(this, Alerts.class));
 | 
				
			||||||
 | 
					    	}
 | 
				
			||||||
 | 
							return true;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,9 @@ import com.uncc.gameday.R.menu;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import android.os.Bundle;
 | 
					import android.os.Bundle;
 | 
				
			||||||
import android.app.Activity;
 | 
					import android.app.Activity;
 | 
				
			||||||
 | 
					import android.content.Intent;
 | 
				
			||||||
import android.view.Menu;
 | 
					import android.view.Menu;
 | 
				
			||||||
 | 
					import android.view.MenuItem;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class Home extends Activity {
 | 
					public class Home extends Activity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -22,5 +24,14 @@ public class Home extends Activity {
 | 
				
			|||||||
		getMenuInflater().inflate(R.menu.home, menu);
 | 
							getMenuInflater().inflate(R.menu.home, menu);
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						@Override
 | 
				
			||||||
 | 
					    public boolean onOptionsItemSelected(MenuItem item) {
 | 
				
			||||||
 | 
					    	switch (item.getItemId()){
 | 
				
			||||||
 | 
					    		case R.id.action_alert_settings:
 | 
				
			||||||
 | 
					    			startActivity(new Intent(this, Alerts.class));
 | 
				
			||||||
 | 
					    	}
 | 
				
			||||||
 | 
							return true;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user