How to disable BottomNavigationView shift mode?

后端 未结 21 2361
Happy的楠姐
Happy的楠姐 2020-11-22 15:55

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

21条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 16:45

    For updated answer using the default. Update to latest design library

    implementation "com.android.support:design:28.0.0"

    and put to your BottomNavigationView xml attributes

    app:itemHorizontalTranslationEnabled="false"
    

    you can put it also as programmatically

    bottomNavigationView.setItemHorizontalTranslationEnabled(false);
    

    You can find source here BottomNavigationView

    Hope this helps you.

提交回复
热议问题