英文:
BottomNavigationView is not showing more than 3 items
问题
BottomNavigationView在Android Studio中未显示在menu.xml中声明的所有项。该答案仅适用于Android Support库版本28及以上。
英文:
BottomNavigationView is not showing all of the items declared in menu.xml in android studio. this answer works only for android support 28 and up.
答案1
得分: 1
对于一些在处理这个问题时遇到困难的开发者,答案就是在你的BottomNavigationView中添加以下XML代码:
<com.google.android.material.bottomnavigation.BottomNavigationView
app:labelVisibilityMode="labeled"/>
英文:
For some developer that are having a hard time with this question, the answer for this is just add this xml code in your bottomnavigationview
<com.google.android.material.bottomnavigation.BottomNavigationView
"app:labelVisibilityMode="labeled"
/>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论