Forum Xamarin Xamarin.Android

BottomNavigationBar Cannot set background colour AND show Text

MartHughMartHugh USMember ✭✭✭

Probably more general that Xamarin, but I thought I would start here.

The source of this component is :

I have a bottom navigation bar with 4 tabs on.
I want to set the background colour to be the same regardless of selected tab
I want to show icon + text for all tab buttons regardless of whether they are selected or not.

The background colour defaults to White. The only way I can find to change it is to call SetActiveTabColor() for each Tab. This works but seems like overkill I should only need to set it in one place.

However I cannot show the text for all icons unless I call UseFixedMode();

However once UseFixedMode() is called, SetActiveTabColor no longer works and the I cannot then set the background colour - it defaults to white.

I have also tried SetBackgroundColor(), to no effect

What am I missing ?


Sign In or Register to comment.