Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove BottomNavigationView labels

Google released new support library v25 with BottomNavigationView

enter image description here

is there any way to remove items labels ?

like image 662
Ali Zarei Avatar asked Oct 21 '16 18:10

Ali Zarei


People also ask

How do I remove a label from BottomNavigationBarItem?

In the BottomNavigationBar set the “selectedFontSize” to 0. Then set the BottomNavigationBarItem “label” property to empty string. ); Voila!


2 Answers

I hope I am not too late to the party here.

But as of Design Support Library 28.0.0-alpha1 you can use the property

app:labelVisibilityMode="unlabeled" 

BottomNavigationView without labels

you can use other values "auto", "labeled" and "selected" as well.

like image 97
Abdul-Aziz-Niazi Avatar answered Oct 14 '22 12:10

Abdul-Aziz-Niazi


Would you want to this style ?

If so, I recommend you try BottomNavigationViewEx.

like image 40
ittianyu Avatar answered Oct 14 '22 12:10

ittianyu