mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
25 lines
804 B
C#
25 lines
804 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
|
|
|
|
using Android.App;
|
|
using Android.OS;
|
|
using Android.Content.PM;
|
|
using Android.Views;
|
|
|
|
namespace SampleGame.Android
|
|
{
|
|
[Activity(ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, MainLauncher = true, Theme = "@android:style/Theme.NoTitleBar")]
|
|
public class MainActivity : Activity
|
|
{
|
|
protected override void OnCreate(Bundle savedInstanceState)
|
|
{
|
|
base.OnCreate(savedInstanceState);
|
|
|
|
Window.AddFlags(WindowManagerFlags.Fullscreen);
|
|
Window.AddFlags(WindowManagerFlags.KeepScreenOn);
|
|
|
|
SetContentView(new SampleGameView(this));
|
|
}
|
|
}
|
|
}
|