| 123456789101112131415161718192021222324252627 |
- using Android.App;
- using Android.Content.PM;
- using Android.OS;
- using Android.Views;
- namespace XMLContentLoadingSample.Android
- {
- [Activity(Label = "XMLContentLoadingSample.Android"
- , 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 Particle3DSampleGame();
- SetContentView((View)g.Services.GetService(typeof(View)));
- g.Run();
- }
- }
- }
|