在android studio中调整appbar项目

问题描述

我的底部应用栏包含不同的菜单项,但问题是它们出现在栏的右侧。我希望它们出现在中心。我曾尝试使用 OtherFinancialTransactionsItems [ {OtherFinancialTransactionsItem: Description: "Foo",Amount: 10000},{OtherFinancialTransactionsItem: Description: "Blah",Amount: 7500},] 但项目变得无法点击。有什么方法可以用来使物品居中吗? 这是底部应用栏enter image description here

app:actionLayout="@layout/share_layout"

这是 appabar_menu.xml

<com.google.android.material.bottomappbar.BottomAppBar
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:id="@+id/bottom_app_bar"
       android:layout_gravity="bottom"
       app:menu="@menu/appabar_menu"
       />

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)