Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            orientationListener = new OrientationListener(this);
            if (orientationListener.CanDetectOrientation())
            {
                orientationListener.Enable();
            }

            // hide window title
            this.RequestedOrientation = ScreenOrientation.Landscape;
            RequestWindowFeature(WindowFeatures.NoTitle);

            // make app fullscreen
            Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);

            // Create our OpenGL view, and display it
            view = new GLView(this);

            SetContentView(view);

            view.Run();

            //Accelerometer.SetupAccelerometer(this);
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            orientationListener = new OrientationListener(this);
            if (orientationListener.CanDetectOrientation())
            {
                orientationListener.Enable();
            }

            // hide window title
            this.RequestedOrientation = ScreenOrientation.Landscape;
            RequestWindowFeature(WindowFeatures.NoTitle);

            // make app fullscreen
            Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);

            // Create our OpenGL view, and display it
            view = new GLView(this);

            SetContentView(view);

            view.Run();

            //Accelerometer.SetupAccelerometer(this);
        }