[英]How to align bottom navigation bar icon center without text?
You can add the app:labelVisibilityMode
attribute to BottomNavigationView like below. 您可以将
app:labelVisibilityMode
属性添加到BottomNavigationView中,如下所示。 Then it automatically center positions the icons. 然后,它将图标自动居中放置。
<android.support.design.widget.BottomNavigationView
...
app:labelVisibilityMode="unlabeled"
/>
Reference: https://developer.android.com/reference/com/google/android/material/bottomnavigation/LabelVisibilityMode 参考: https : //developer.android.com/reference/com/google/android/material/bottomnavigation/LabelVisibilityMode
Just add a space ( ). 只需添加一个空格(&nbsp)。 This will consider a white space.
这将考虑空白。 Also try adding !important along with the value of property and this might also help you.
另外,尝试添加!important以及property的值,这也可能对您有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.