diff --git a/TheGameExtreme.Android/MainActivity.cs b/TheGameExtreme.Android/MainActivity.cs index 6d8c9e3..8553e98 100644 --- a/TheGameExtreme.Android/MainActivity.cs +++ b/TheGameExtreme.Android/MainActivity.cs @@ -24,14 +24,22 @@ namespace TheGameExtreme.Droid Forms.Init(this, savedInstanceState); LoadApplication(new App()); - int uiOptions = (int)Window.DecorView.SystemUiVisibility; + Window.DecorView.SystemUiVisibility = (StatusBarVisibility) + (SystemUiFlags.LowProfile +| SystemUiFlags.Fullscreen +| SystemUiFlags.HideNavigation +| SystemUiFlags.Immersive + | SystemUiFlags.ImmersiveSticky); + Window.AddFlags(WindowManagerFlags.Fullscreen | WindowManagerFlags.TurnScreenOn); + + /*int uiOptions = (int)Window.DecorView.SystemUiVisibility; uiOptions |= (int)SystemUiFlags.LowProfile; uiOptions |= (int)SystemUiFlags.Fullscreen; uiOptions |= (int)SystemUiFlags.HideNavigation; uiOptions |= (int)SystemUiFlags.ImmersiveSticky; Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions; Window.SetStatusBarColor(Android.Graphics.Color.Argb(255, 0, 0, 0)); - Window.AddFlags(WindowManagerFlags.Fullscreen | WindowManagerFlags.TurnScreenOn); + */ } public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Permission[] grantResults) diff --git a/TheGameExtreme/view/HomePage.xaml b/TheGameExtreme/view/HomePage.xaml index 0d1ae1a..79fcbcf 100644 --- a/TheGameExtreme/view/HomePage.xaml +++ b/TheGameExtreme/view/HomePage.xaml @@ -1,5 +1,6 @@  - - + + BackgroundColor="Transparent"/> diff --git a/TheGameExtreme/view/HomePage.xaml.cs b/TheGameExtreme/view/HomePage.xaml.cs index 4aa62c4..36a484d 100644 --- a/TheGameExtreme/view/HomePage.xaml.cs +++ b/TheGameExtreme/view/HomePage.xaml.cs @@ -10,6 +10,7 @@ namespace TheGameExtreme.view public HomePage() { + InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); LoadParameterOptionOnHomepage();