Hi,
I am using Xamarin.Forms to build my first cross platform app.
My NavigationBar/ActionBar looks great on iOS and fits the design spec but not on Android.
My main requirement is to have a centered Logo both in iOS and Android but NavigationPage.SetTitleLogo()
and BackgroundColor
only seems to work on iOS.
public class RootPage : MasterDetailPage
{
public RootPage()
{
var menuPage = new MenuPage();
menuPage.Menu.ItemSelected += (sender, e) => NavigateTo(e.SelectedItem as AppMenuItem);
Master = menuPage;
Detail = new NavigationPage(new LandingPage());
}
private void NavigateTo(AppMenuItem menu)
{
Page displayPage = (Page)Activator.CreateInstance(menu.TargetType);
Detail = new NavigationPage(displayPage);
IsPresented = false;
}
}
public LandingPage()
{
// Set Page Info
Title = "Properteez";
NavigationPage.SetTitleIcon(this, "properteez_logo_nav120.png");
BackgroundColor = Color.White;
Content = GetPageLayout();
}
How would I acheieve the same look I am getting in iOS on Android?
Thanks!