Search code examples
androidxamarinxamarin.androidvisual-studio-2019

Icon not showing on moving tabbed toolbar placement to the bottom in Xamarin C# android, it worked before adding the bottom transfer code


Before adding this code to transfer my navigation toolbar placement to the bottom
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core" android:TabbedPage.ToolbarPlacement="Bottom"
The icons were showing at the top but now, they are just blanks and not showing enter image description here

what do I need to add or modify?


Solution

  • Solution1:

    You could use Android Asset Studio to get tthe matching tabbar icon's resolutions.

    Choose the image in Source. Upload your icon. And then download the zip for all resolutions.

    The Tab1 show the matching icon.

    Solution2:

    You could use Shell tabs directly.

    For more details, please refer to the MS docus. https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/shell/tabs