【发布时间】:2019-06-30 20:53:42
【问题描述】:
我有一个标签页,我已经容纳了,但是我觉得它很小,我需要下栏更高
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Mobile.View.Principal"
xmlns:local="clr-namespace:Mobile.View"
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
BackgroundColor="White"
BarTextColor="{StaticResource Gris}"
BarBackgroundColor="white">
<local:Inicio Title="Inicio" Icon="home_icon.png" HeightRequest="30" WidthRequest="30"/>
<local:Consultas Title="Consultas" Icon="search_icon.png"/>
<local:Utilidades Title="Utilidades" Icon="settings_icon.png"/>
<local:Perfil Title="Perfil" Icon="favorites_icon.png"/>
</TabbedPage>
这是背后的代码:
public partial class Principal : Xamarin.Forms.TabbedPage
{
public Principal()
{
InitializeComponent();
On<Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
On<Xamarin.Forms.PlatformConfiguration.Android>().SetBarSelectedItemColor(Color.Black);
On<Xamarin.Forms.PlatformConfiguration.Android>().SetBarItemColor(Color.LightGray);
//On<Xamarin.Forms.PlatformConfiguration.Android>().DisableSwipePaging(); //Disable sliding the pages with your finger.
NavigationPage.SetHasNavigationBar(this, false); // Hide nav bar
}
async void OnPerfilAsync(object sender, EventArgs e)
{
await Navigation.PushAsync(new Perfil());
}
}
这就是应用程序的外观:
BAR HEIGHT 物业的名称是什么?
我需要帮助!!!
【问题讨论】: