Xamarin.Forms 3.1.0+版本 Android 原生支持底部導航欄
阿新 • • 發佈:2018-07-29
toolbar ott 支持 cor for aml otto nfx XML
Xamarin.Forms 3.1.0+版本 Android 原生支持底部導航欄
Xamarin.Forms 3.1.0以上版本終於支持Android底部導航欄啦,可以不用第三方的支持庫了。
https://developer.xamarin.com/releases/xamarin-forms/xamarin-forms-3.1/3.1.0/
C#代碼:
On<Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
Xaml代碼:
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:views="clr-namespace:TheLittleThingsPlayground.Views" x:Class="TheLittleThingsPlayground.Views.MainPage" BarBackgroundColor="#F1F1F1" xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"android:TabbedPage.ToolbarPlacement="Bottom" android:TabbedPage.BarItemColor="#666666" android:TabbedPage.BarSelectedItemColor="Black">
Xamarin.Forms 3.1.0+版本 Android 原生支持底部導航欄