我正在使用 android.support.design.bottomappbar.BottomAppBar
但是当添加选项菜单时导航图标出现在左上角。
没有选项它按预期工作(center_vertical)。
带有选项菜单
没有选项菜单
谁能告诉我如何解决它?
最佳答案
在您的布局中,您可以将 BottomAppBar 主题更改为:
<android.support.design.bottomappbar.BottomAppBar
...
android:theme="@style/Widget.MaterialComponents.BottomAppBar"
/>
关于android - 底部应用栏导航图标不是垂直居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50325310/