I'm pretty new to Xamarin Shell and I would like to change the size and position of the icons in my TabBar
.
I'd want to increase the size a little bit and move the icons to the center vertically like so;
How would I achieve this?
<!--BluePill Pages--> <TabBar Style="{StaticResource FreeStyle}"> <!--TeleMED Tab--> <Tab Icon="telemedicineIcon.png"> <ShellContent ContentTemplate="{DataTemplate views:TelemedicineMainPage}"/> </Tab> <!--FlemingTab--> <Tab Icon="chatbotIcon.png"> <ShellContent ContentTemplate="{DataTemplate views:ChatbotPage}"/> </Tab> <!--FirstAid Tab--> <Tab Icon="firstaidIcon.png"> <ShellContent ContentTemplate="{DataTemplate views:FirstAidPage}"/> </Tab> <!--User Profile Tab--> <Tab Icon="profileIcon.png"> <ShellContent ContentTemplate="{DataTemplate views:UserProfilePage}"/> </Tab> </TabBar>
Answers
Here is an excellent article for customizing tabbar in xamarin shell project , you could create you own layout and replace the default one in Custom renderer .
Key code
What of iOS? is there an implementation of this for iOS?
Please check the simple solution with help of Custom renderer , it both works for iOS and Android .
iOS
Android