Activity1.cs 936 B

123456789101112131415161718192021222324252627
  1. using Android.App;
  2. using Android.Content.PM;
  3. using Android.OS;
  4. using Android.Views;
  5. namespace XMLContentLoadingSample.Android
  6. {
  7. [Activity(Label = "XMLContentLoadingSample.Android"
  8. , MainLauncher = true
  9. , Icon = "@drawable/icon"
  10. , Theme = "@style/Theme.Splash"
  11. , AlwaysRetainTaskState = true
  12. , LaunchMode = Android.Content.PM.LaunchMode.SingleInstance
  13. , ScreenOrientation = ScreenOrientation.FullUser
  14. , ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)]
  15. public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
  16. {
  17. protected override void OnCreate(Bundle bundle)
  18. {
  19. base.OnCreate(bundle);
  20. var g = new Particle3DSampleGame();
  21. SetContentView((View)g.Services.GetService(typeof(View)));
  22. g.Run();
  23. }
  24. }
  25. }