Forum Xamarin Xamarin.Forms

How to resize png icon in Bottom Tab in Xamarin.Forms Shell

Hi,
I am using Xamarin.Forms Shell. I have used following code to generate tab:

    <ShellContent Title="Map" Icon="img1.png">
        <views:MapPage></views:MapPage>
    </ShellContent>

    <ShellContent Title="fun2" 
                  Icon="img2.png">
        <views:BookNow></views:BookNow>
    </ShellContent>
    <ShellContent Title="fun3" Icon="img3.png"
                  ContentTemplate="{DataTemplate views:MyTrips}">

    </ShellContent>
    <ShellContent Title="fun4" Icon="img4.png"> 
        <views:Inbox />
    </ShellContent>
</FlyoutItem>

I want to change the tab height at bottom (increase image icon size).

Please suggest how to do it in android?

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    You can customize tabbar and the icons with creating your own layout xaml file and override the method OnCreateView in ShellItemRenderer .

    Google Xamarin.Forms Shell: Customizing the TabBar (Android) and step into the first link to check the details .

Sign In or Register to comment.