我有一个安卓应用,在横屏模式下有一个底部导航栏,包含四个菜单项。这些菜单项在中间挤在一起,如下所示:
我希望它们能像这样均匀分布在导航栏上:
我希望我的图标可以覆盖整个栏,包括红色标注的空间:
我该如何实现这种格式?
上面的示例图片来自material.io文档
我的XML:
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="0dp"
android:layout_marginStart="0dp"
android:background="?android:attr/windowBackground"
android:layout_alignParentBottom="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation"
app:labelVisibilityMode="labeled" />
我希望我的图标可以覆盖整个栏,包括红色标注的空间: