BottomNavigationView doesn\'t show menu\'s title that are inactive.
How to show titles of all menu elements in bottomNavigationBar? The problem is that in my case s
I had some weird behavior with BottomNavigationView. When I was selecting any item/fragment in it, the fragment pushes BottomNavigationView a bit lower, so text of BottomNavigationView goes below the screen, so only icons were visible and text goes hidden on clicking of any item.
If you are facing that weird behavior then Here is the solution. Just remove
android:fitsSystemWindows="true"
in your root layout of fragment. Just remove this and boom! BottomNavigationView will work fine, now it can be shown with text and icon. I had this in my root CoordinatorLayout of fragment.
Also don't forget to add
BottomNavigationViewHelper.disableShiftMode(bottomNavigationView);
in your activity to disable shifting mode. Though it is not exactly related to the asked question, but still I find this helpful.