BottomNavigationView无法显示超过3个项目。

huangapple go评论67阅读模式
英文:

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

&lt;com.google.android.material.bottomnavigation.BottomNavigationView
&quot;app:labelVisibilityMode=&quot;labeled&quot;
 /&gt;

huangapple
  • 本文由 发表于 2020年9月23日 18:54:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/64026377.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定