Resize topBar/menuButton on Android

This commit is contained in:
2019-07-11 12:50:29 -05:00
parent 14f42852aa
commit 6b78df6634
2 changed files with 6 additions and 5 deletions
@@ -74,7 +74,6 @@ namespace qController
NavigationPage.SetHasNavigationBar(this, false);
topBar.BackgroundColor = Color.FromHex("71AEFF");
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
BackgroundColor = Color.FromHex("4A4A4A");
@@ -83,12 +82,14 @@ namespace qController
switch (Device.RuntimePlatform)
{
case Device.iOS:
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
menuButton.FontSize = App.Height * .04;
break;
case Device.Android:
topBar.HeightRequest = App.Height * .08;
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
menuButton.FontSize = App.Height * .04;
menuButton.FontSize = App.Height * .05;
break;
}
var menuButtonGesture = new TapGestureRecognizer();
@@ -37,7 +37,6 @@ namespace qController
private void InitGUI()
{
NavigationPage.SetHasNavigationBar(this, false);
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
lstView.ItemsSource = QStorage.qInstances;
lstView.ItemTemplate = new DataTemplate(typeof(QInstanceCell));
@@ -54,13 +53,14 @@ namespace qController
switch (Device.RuntimePlatform)
{
case Device.iOS:
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
menuButton.FontSize = App.Height * .04;
break;
case Device.Android:
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
topBar.HeightRequest = App.Height * .08;
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
menuButton.FontSize = App.Height * .04;
menuButton.FontSize = App.Height * .05;
break;
}