mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-24 00:19:27 +00:00
Fix Android MenuButton size
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
<AndroidSigningStorePass></AndroidSigningStorePass>
|
<AndroidSigningStorePass></AndroidSigningStorePass>
|
||||||
<AndroidSigningKeyAlias></AndroidSigningKeyAlias>
|
<AndroidSigningKeyAlias></AndroidSigningKeyAlias>
|
||||||
<AndroidSigningKeyPass></AndroidSigningKeyPass>
|
<AndroidSigningKeyPass></AndroidSigningKeyPass>
|
||||||
<AndroidSupportedAbis>armeabi-v7a;x86</AndroidSupportedAbis>
|
<AndroidSupportedAbis>armeabi-v7a;x86;arm64-v8a;x86_64</AndroidSupportedAbis>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
|||||||
@@ -34,12 +34,11 @@ namespace qController
|
|||||||
iNav = MainPage.Navigation;*/
|
iNav = MainPage.Navigation;*/
|
||||||
|
|
||||||
mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
|
mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
|
||||||
|
|
||||||
Height = mainDisplayInfo.Height / mainDisplayInfo.Density;
|
Height = mainDisplayInfo.Height / mainDisplayInfo.Density;
|
||||||
Width = mainDisplayInfo.Width / mainDisplayInfo.Density;
|
Width = mainDisplayInfo.Width / mainDisplayInfo.Density;
|
||||||
HeightUnit = Height / 100.0;
|
HeightUnit = Height / 100.0;
|
||||||
WidthUnit = Width / 100.0;
|
WidthUnit = Width / 100.0;
|
||||||
System.Console.WriteLine(Height);
|
|
||||||
System.Console.WriteLine(Width);
|
|
||||||
switch (Device.RuntimePlatform)
|
switch (Device.RuntimePlatform)
|
||||||
{
|
{
|
||||||
case Device.iOS:
|
case Device.iOS:
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ namespace qController
|
|||||||
switch (Device.RuntimePlatform)
|
switch (Device.RuntimePlatform)
|
||||||
{
|
{
|
||||||
case Device.iOS:
|
case Device.iOS:
|
||||||
menuButton.Margin =
|
|
||||||
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
||||||
menuButton.FontSize = App.Height * .04;
|
menuButton.FontSize = App.Height * .04;
|
||||||
break;
|
break;
|
||||||
case Device.Android:
|
case Device.Android:
|
||||||
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
|
||||||
menuButton.Margin = new Thickness(20, 10, 20, 10);
|
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
|
||||||
|
menuButton.FontSize = App.Height * .04;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user