如何解决在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 举报,一经查实,本站将立刻删除。