From c4c0f3c887d627b6432551e96009c7aeecd4cdd8 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Sat, 9 Dec 2017 11:55:50 +0100 Subject: Add project files. --- Penguloon/Activity1.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Penguloon/Activity1.cs (limited to 'Penguloon/Activity1.cs') diff --git a/Penguloon/Activity1.cs b/Penguloon/Activity1.cs new file mode 100644 index 0000000..ac9aa1e --- /dev/null +++ b/Penguloon/Activity1.cs @@ -0,0 +1,27 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; +using Android.Views; + +namespace Penguloon +{ + [Activity(Label = "Penguloon" + , 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(); + SetContentView((View)g.Services.GetService(typeof(View))); + g.Run(); + } + } +} + -- cgit v1.2.3-70-g09d2