Hi,
I have put a TabbedPage so the buttons/tabbuttons are on the top of my screen. How can I set the height of them? I wand to add padding to it so its a little bit larger(in height) than default.
How can I remove all the titles (text) and padding of the tab buttons? I want to see only the icons. And ideally (if possible) to show the title only of the current selected tab. How can I achieve that? If I set Title="" I get an ugly spacing below all icons in the tabbar.
Thank you in advance
Answers
Try to create a
TabbedPage
custom renderer to achieve the requirement on each platform.Tutorial:
https://xamgirl.com/extending-tabbedpage-in-xamarin-forms/
That does not answer the question. I do not see how they actually remove the title nor setting the height. They are doing something else (removing some animation present earlier, that I actually would like to have).
Seems like what I am looking for is a BottomNavigationBar in Material Design style in Xamarin 4.
For Android, add
android:minHeight
in Tabbar.xmlor add the code in MainActivity class
For ios, use a custom renderer.
Check the link:
https://stackoverflow.com/questions/54561493/how-to-customize-the-size-of-the-bar-in-a-tabbedpage-xamarin-forms
I can't manage to get rid of the titles with a custom renderer. Anyone can provide and example or alternative solution? Seems like some time ago that was the standard to not have titles.