diff options
Diffstat (limited to 'WatercolorGames.Pong/Activity1.cs')
| -rw-r--r-- | WatercolorGames.Pong/Activity1.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/WatercolorGames.Pong/Activity1.cs b/WatercolorGames.Pong/Activity1.cs new file mode 100644 index 0000000..6cfe249 --- /dev/null +++ b/WatercolorGames.Pong/Activity1.cs @@ -0,0 +1,27 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; +using Android.Views; + +namespace WatercolorGames.Pong +{ + [Activity(Label = "WatercolorGames.Pong" + , MainLauncher = true + , Icon = "@drawable/icon" + , Theme = "@style/Theme.Splash" + , AlwaysRetainTaskState = true + , LaunchMode = Android.Content.PM.LaunchMode.SingleInstance + , ScreenOrientation = ScreenOrientation.FullUser + , ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)] + public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity + { + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + var g = new Game1(this); + SetContentView((View)g.Services.GetService(typeof(View))); + g.Run(); + } + } +} + |
