How to make a TabbedPage to look the same way in iOS and Android?

lm666lm666 UYMember

Hey guys,

i am trying to make a tabbed app and one of the requirements is that the tabs looks the same way, i was asked to make the tabs looks the same way in both platforms.

Any tips?

Best Answer

Answers

  • MaxenceMaxMaxenceMax Member ✭✭

    @Velocity

    I'v seen that you were talking about Multipage on several posts, have you any sample of how Multipage works ?

    I've tried some samples, but nothing did what I want. I want to make TabbedPage like with custom action on item click, so I need to embed pages into another one, but I didn't find any solution at the moment.

    Thanks's !

  • karlingenkarlingen Member ✭✭
    edited July 2018

    This is now possible with Xamarin.Forms version 3.1!

    In xaml:

    <?xml version="1.0" encoding="utf-8"?>
    <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" 
        xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
        android:TabbedPage.ToolbarPlacement="Bottom"
    

    Or in c# code-behind:

    using Xamarin.Forms.PlatformConfiguration;
    using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
    
    On<Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
    
Sign In or Register to comment.