【发布时间】:2019-01-01 23:25:40
【问题描述】:
我在这个项目中有一个小问题。这是我的标签页声明:
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:JacksCurrencyConverter;assembly=JacksCurrencyConverter"
x:Class="JacksCurrencyConverter.StartPage"
x:Name="Children"
HeightRequest="10"
WidthRequest="10">
<TabbedPage.Children>
<local:MainPage Icon="currency.png" Title="Exchange"/>
<local:FavouritesPage Icon="favourites2.png" Title="Favourites"/>
<local:MainPage Icon="statistics2.png" Title="Info"/>
</TabbedPage.Children>
</TabbedPage>
那么这就是它在 iOS 和 Android 中的样子:
iOS:
安卓:
如何减少 Android 上 tabbpage 中显示的空白蓝色空间?
要减少的蓝色空间:
抱歉,我需要至少 10 个声望才能发布图片。
【问题讨论】:
-
你能告诉我你在哪里调用这个页面的构造函数的代码吗?
-
@G.hakim public App() { InitializeComponent(); MainPage = new NavigationPage(new StartPage()); }
标签: c# xamarin.forms xamarin.ios xamarin.android tabbedpage