(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using Android.App;
|
||||
using Android.Content.PM;
|
||||
using Android.OS;
|
||||
using Android.Views;
|
||||
|
||||
namespace $safeprojectname$
|
||||
{
|
||||
[Activity(Label = "$projectname$"
|
||||
, 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 | ConfigChanges.ScreenLayout)]
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user