shiftos-pong/WatercolorGames.Pong/Activity1.cs

28 lines
903 B
C#
Raw Permalink Normal View History

2018-03-12 15:52:38 +00:00
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();
}
}
}