I'm using android.support.design.bottomappbar.BottomAppBar
but the navigation icon is coming in left top corner when option menu is added.
without Option its working as expected (center_vertical).
With option menu
Without Option Menu
Can any one tell how to fix it?
In your layout, you can change the BottomAppBar theme to this:
<android.support.design.bottomappbar.BottomAppBar
...
android:theme="@style/Widget.MaterialComponents.BottomAppBar"
/>
After trying different ways, setting padding through styles worked.
<style name="NavButtonPadding" parent="@android:style/Widget.ActionButton">
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
<item name="android:minWidth">10dp</item>
</style>
After Adding styles
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With