Android 底部导航栏文字显示不全解决方案
非常抱歉之前的回答没有给出正确的解决方案。以下是修改后的代码,可以尝试将其替换到你提供的代码中,以解决底部导航栏文字显示不全的问题:
<?xml version='1.0' encoding='utf-8'?>
<com.google.android.material.bottomnavigation.BottomNavigationView
xmlns:android='http://schemas.android.com/apk/res/android'
xmlns:app='http://schemas.android.com/apk/res-auto'
android:id='@+id/bottomNavigationView'
android:layout_width='match_parent'
android:layout_height='wrap_content'
app:itemIconTint='#6AF321'
app:itemTextColor='#28F321'
app:layout_constraintBottom_toBottomOf='parent'
app:layout_constraintEnd_toEndOf='parent'
app:layout_constraintHorizontal_bias='0.0'
app:layout_constraintStart_toStartOf='parent'
app:menu='@menu/bottom_menu' />
请将上述代码替换到你提供的布局文件中的com.google.android.material.bottomnavigation.BottomNavigationView部分。这样底部导航栏的文字应该能够完整显示了。
原文地址: https://www.cveoy.top/t/topic/Fic 著作权归作者所有。请勿转载和采集!