Пример #1
0
        private void HandleDisplayUpdate(DisplayUpdateMessage display_message)
        {
            switch (display_message.SwivelState)
            {
            case DisplayManagerHelper.SwivelStart:
                Log.Debug(TAG, "DisplayManagerHelper.SwivelStart");
                PlayWingSound(OPEN_SOUND_PATH);
                break;

            case DisplayManagerHelper.SwivelEnd:
                Log.Debug(TAG, "DisplayManagerHelper.SwivelEnd");
                break;

            case DisplayManagerHelper.NonSwivelStart:
                Log.Debug(TAG, "DisplayManagerHelper.NonSwivelStart");
                PlayWingSound(CLOSE_SOUND_PATH);
                break;

            case DisplayManagerHelper.NonSwivelEnd:
                Log.Debug(TAG, "DisplayManagerHelper.NonSwivelEnd");
                SoftWingInput.StopSoftWingInput();
                break;

            default:
                break;
            }
        }
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            Log.Debug(TAG, "onCreate()");
            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);

            // Force the controller into a full screen view
            Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);
            RequestWindowFeature(WindowFeatures.NoTitle);
            var uiOptions = SystemUiFlags.HideNavigation |
                            SystemUiFlags.LayoutHideNavigation |
                            SystemUiFlags.LayoutFullscreen |
                            SystemUiFlags.Fullscreen |
                            SystemUiFlags.LayoutStable |
                            SystemUiFlags.ImmersiveSticky;

            Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions;

            keyboardView = LayoutInflater.Inflate(SwSettings.GetSelectedLayout(), null);
            keyboardView.SetMinimumHeight(MULTI_DISPLAY_HEIGHT_PX);
            SetContentView(keyboardView);

            SwDisplayManager.StartSwDisplayManager();
            SetInputListeners((ViewGroup)keyboardView);
            instance = this;
        }
Пример #3
0
 public override void Finish()
 {
     Log.Debug(TAG, "Finish()");
     base.Finish();
     instance = null;
 }
Пример #4
0
 private void ShowSwKeyboard()
 {
     Log.Debug(TAG, "ShowSwKeyboard");
     SoftWingInput.StartSoftWingInput(lg_display_manager.MultiDisplayId);
 }