From dca5a4b1e29cb9401996493b009a801228e7b2f2 Mon Sep 17 00:00:00 2001 From: Baptiste ARNAUD Date: Thu, 12 Dec 2019 13:53:34 +0100 Subject: [PATCH] regard sur caroussel --- TheGameExtreme.Android/MainActivity.cs | 13 ++++--------- TheGameExtreme/TheGameExtreme.csproj | 7 +++++-- TheGameExtreme/view/GamePreparationPage.xaml.cs | 5 ++--- TheGameExtreme/view/HomePage.xaml.cs | 1 + 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/TheGameExtreme.Android/MainActivity.cs b/TheGameExtreme.Android/MainActivity.cs index 8553e98..2264c49 100644 --- a/TheGameExtreme.Android/MainActivity.cs +++ b/TheGameExtreme.Android/MainActivity.cs @@ -24,22 +24,17 @@ namespace TheGameExtreme.Droid Forms.Init(this, savedInstanceState); LoadApplication(new App()); - 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; + + 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/TheGameExtreme.csproj b/TheGameExtreme/TheGameExtreme.csproj index 19febeb..ee1cd44 100644 --- a/TheGameExtreme/TheGameExtreme.csproj +++ b/TheGameExtreme/TheGameExtreme.csproj @@ -2,7 +2,10 @@ netstandard2.0 - true + true + + Library + @@ -83,7 +86,7 @@ MSBuild:UpdateDesignTimeXaml - + MSBuild:UpdateDesignTimeXaml diff --git a/TheGameExtreme/view/GamePreparationPage.xaml.cs b/TheGameExtreme/view/GamePreparationPage.xaml.cs index cd9f0bf..7ccff9f 100644 --- a/TheGameExtreme/view/GamePreparationPage.xaml.cs +++ b/TheGameExtreme/view/GamePreparationPage.xaml.cs @@ -12,7 +12,7 @@ namespace TheGameExtreme.view public List listGameMode = new List { AppResources.TypeValueWhole, AppResources.TypeValueRelative, AppResources.TypeValueTens, AppResources.TypeValuehundredth, AppResources.TypeValuethousandth, AppResources.TypeValuefractionated }; public List listNbStack = new List { 4, 6, 8 }; public List listNbCard = new List { 100, 80, 60, 40 }; - + public GamePreparationPage() { @@ -34,10 +34,9 @@ namespace TheGameExtreme.view SelectNbCard.ItemsSource = listNbCard; LoadParameterNbCardsGamePreparation(); - - } + private async void Back(object sender, EventArgs e) { IOGamePreparation.SaveParamaterGamePreparationNbPlayers(PlayerSelecter.SelectedIndex); diff --git a/TheGameExtreme/view/HomePage.xaml.cs b/TheGameExtreme/view/HomePage.xaml.cs index 36a484d..0ee01bd 100644 --- a/TheGameExtreme/view/HomePage.xaml.cs +++ b/TheGameExtreme/view/HomePage.xaml.cs @@ -13,6 +13,7 @@ namespace TheGameExtreme.view InitializeComponent(); NavigationPage.SetHasNavigationBar(this, false); + NavigationPage.SetHasBackButton(this, false); LoadParameterOptionOnHomepage(); }